Skip to content

Add support for parent_name in definition files#139

Closed
rc-csmith wants to merge 16 commits intoredcanaryco:masterfrom
rc-csmith:122_cbc_logging_bug
Closed

Add support for parent_name in definition files#139
rc-csmith wants to merge 16 commits intoredcanaryco:masterfrom
rc-csmith:122_cbc_logging_bug

Conversation

@rc-csmith
Copy link
Copy Markdown
Contributor

@rc-csmith rc-csmith commented Jul 26, 2023

Changes

  • Added support for parent_name definition file field in all product files
  • Added support for filemod and modload in vmware_cb_enterprise_edr.py
  • Updated spec tests to include new definition file field
  • Consolidated test data into single file
  • Fix bug in vmware_cb_enterprise_edr.py to properly record full query

Closes #122
Closes #131

@rc-csmith rc-csmith self-assigned this Jul 26, 2023
@rc-csmith rc-csmith marked this pull request as ready for review September 22, 2023 20:26
TreWilkinsRC
TreWilkinsRC previously approved these changes Sep 25, 2023
Copy link
Copy Markdown
Contributor

@ChuckFrey ChuckFrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to baseline a query to validate the pull request and I ran into a problem that stopped me from further testing. The following can be done in CbC'srclabtestcbthreathunter

device_name:ec2amaz\-b8bka2n AND process_cmdline:notepad.exe

w/out the sensor group specified
[2023-12-21 12:52:04,872][INFO] Executing surveyor command python /Users/chuckfrey/Documents/surveyor/surveyor.py --profile rclabtestcbthreathunter_rclabtestcbthreathunter --prefix rclabtestcbthreathunter_rclabtestcbthreathunter_cbc --output /Users/chuckfrey/Documents/github/cirt-threat-hunting/results/rclabtestcbthreathunter_rclabtestcbthreathunter_cbc_survey.csv --days 2 --hostname EC2AMAZ-B8BKA2N --query ' process_cmdline:notepad.exe' cbc --sensor-group ' '. See actual surveyor logs for more details.
Usage: surveyor.py cbc [OPTIONS]
Try 'surveyor.py cbc -h' for help.

Error: No such option: --sensor-group Did you mean --device-group?
[2023-12-21 12:52:05,998][INFO] Cleaning results files in /Users/chuckfrey/Documents/github/cirt-threat-hunting/results
[2023-12-21 12:52:06,000][ERROR] No file, /Users/chuckfrey/Documents/github/cirt-threat-hunting/results/rclabtestcbthreathunter_rclabtestcbthreathunter_cbc_survey.csv, found. Skipping to next file
[2023-12-21 12:52:06,000][WARNING] Appened dataframe appears to be empty. No files output.

w/ the sensor group specified

2023-12-21 12:58:31,790][INFO] Collecting credentials for all supported EDR sources for subdomain rclabtestcbthreathunter
[2023-12-21 12:58:52,785][INFO] Processing all supported EDR sources for subdomain rclabtestcbthreathunter
[2023-12-21 12:58:52,785][INFO] Total Profiles: 1
[2023-12-21 12:58:52,786][INFO] Executing surveyor command python /Users/chuckfrey/Documents/surveyor/surveyor.py --profile rclabtestcbthreathunter_rclabtestcbthreathunter --prefix rclabtestcbthreathunter_rclabtestcbthreathunter_cbc --output /Users/chuckfrey/Documents/github/cirt-threat-hunting/results/rclabtestcbthreathunter_rclabtestcbthreathunter_cbc_survey.csv --days 2 --hostname EC2AMAZ-B8BKA2N --query parent_cmdline:notepad.exe cbc --sensor-group MonitoredWithAVEnabled. See actual surveyor logs for more details.
Usage: surveyor.py cbc [OPTIONS]
Try 'surveyor.py cbc -h' for help.

Error: No such option: --sensor-group Did you mean --device-group?
[2023-12-21 12:58:53,889][INFO] Cleaning results files in /Users/chuckfrey/Documents/github/cirt-threat-hunting/results
[2023-12-21 12:58:53,891][ERROR] No file, /Users/chuckfrey/Documents/github/cirt-threat-hunting/results/rclabtestcbthreathunter_rclabtestcbthreathunter_cbc_survey.csv, found. Skipping to next file
[2023-12-21 12:58:53,891][WARNING] Appened dataframe appears to be empty. No files output.

@TreWilkinsRC TreWilkinsRC removed the request for review from ChuckFrey October 17, 2024 08:19
@rc-csmith rc-csmith dismissed TreWilkinsRC’s stale review November 6, 2024 15:58

new changes need additional review

@TreWilkinsRC TreWilkinsRC requested review from rc-abodkins and removed request for rc-abodkins November 6, 2024 17:31
@ChuckFrey
Copy link
Copy Markdown
Contributor

No sure if needed anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Parent Process Name Support [BUG] Full query not logged for CbC

3 participants