Commit Graph

710 Commits

Author SHA1 Message Date
Ross Wolf 98ced817cf Disable missing rule check for the version lock (#1384)
(cherry picked from commit c31a344593)
2021-07-27 19:48:57 +00:00
Ross Wolf 55741e71a5 Update the version lock for 7.14.0 and 0.13.3 (#1383)
(cherry picked from commit 5eccaf0cd5)
2021-07-27 18:25:44 +00:00
Justin Ibarra ab9f055acb Ensure EQL rules with maxspan have a long enough lookback window (#1361)
* Add the following properties to EQLRuleData:
   - max_span
   - look_back
   - interval_ratio

* Add the following tests:
   - test_eql_lookback
   - test_eql_interval_to_maxspan

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>

(cherry picked from commit 7759fa2500)
2021-07-22 21:53:37 +00:00
Ross Wolf f7c154cb8f [Rule Tuning] Remove \Program Files*\ style wildcards (#1369)
* Remove \Program Files*\ style wildcards
* Convert string and remote trailing .exe check
* Fix syntax
* Escape dot
* Add missing `and`
* Fix syntax for regex string
* Convert * to .* for regex

(cherry picked from commit 7b62fe296d)
2021-07-22 17:55:50 +00:00
Justin Ibarra fbc19bebb8 [Rule Tuning] Update EQL rules with lookback < maxspan (#1362)
* [Rule Tuning] Update EQL rules with lookback < maxspan
* update intervals to be at least interval >= 1/2 maxspan

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>

(cherry picked from commit 4aab1278bf)
2021-07-22 17:09:36 +00:00
Ross Wolf bc23bde4a6 Fix metadata.extended (#1377)
(cherry picked from commit 5ba1c26cf1)
2021-07-22 16:30:02 +00:00
Ross Wolf b13c369dab [Fleet] Track integrations in folder and metadata (#1372)
* Track integrations in folder and metadata
* Remove duplicate entry
* Update note and tests

Removed changes from:
- rules/cyberark/privilege_escalation_cyberarkpas_error_audit_event_promotion.toml
- rules/cyberark/privilege_escalation_cyberarkpas_recommended_events_to_monitor_promotion.toml

(selectively cherry picked from commit 1882f4456c)
2021-07-21 21:25:22 +00:00
Ross Wolf a578a3815c [Rule Tuning] Convert unusual extension rule to regex (#1368)
* Convert unusual extension rule to regex
* Update defense_evasion_file_creation_mult_extension.toml
* Fix date
* Fix extension

(cherry picked from commit 9f3d5328f4)
2021-07-21 17:49:56 +00:00
Ross Wolf 92d432c78b [Rule Tuning] Creation of Hidden Files and Directories (#1357)
* [Rule Tuning] Creation of Hidden Files and Directories
* Remove redundant `A` from the regex

(cherry picked from commit 9b559d0cd9)
2021-07-21 17:48:07 +00:00
David French b81f29cddf [Rule Tuning] Update Google Workspace rules to use google_workspace event schema (#1374)
* use google_workspace event schema

* update to use google_workspace schema

(cherry picked from commit 23626b814c)
2021-07-21 17:39:16 +00:00
dstepanic17 acc15485fa [New Rule] Windows Defender Exclusions Added via PowerShell (#1370)
* Added new rule

* Update rules/windows/defense_evasion_defender_exclusion_via_powershell.toml

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>

* Update rules/windows/defense_evasion_defender_exclusion_via_powershell.toml

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>

* Added pwsh.exe to original name

* Added PowerShell MITRE reference

* Update rules/windows/defense_evasion_defender_exclusion_via_powershell.toml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

* Update rules/windows/defense_evasion_defender_exclusion_via_powershell.toml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>
Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

(cherry picked from commit fbd4cf2117)
2021-07-21 16:54:39 +00:00
Justin Ibarra e9b2ebab2d Update cardinality field in schema for threshold rules (#1349)
* Make cardinality array in schema for threshold rules
* update master, 7.12, 7.13, and 7.14 schemas with cardinality fix
* fix 7.12 downgrade to handle cardinality as an array

* Add two new rules to detect agent spoofing

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>

(cherry picked from commit 163d9e3864)
2021-07-21 16:33:26 +00:00
Austin Songer 34b37c0bfd [Rule Tuning] Mimikatz powershell module activity detected (#1297)
* update query
* add indexes

(cherry picked from commit 95e6458c6e)
2021-07-21 07:08:31 +00:00
Andrew Pease f0514de6a2 [Rule Tuning] Add Filebeat and Auditbeat to Network Rules (#1282)
* standardized indices and added the from field

(cherry picked from commit 34df7c6b89)
2021-07-21 06:59:52 +00:00
Austin Songer f64a9599d0 [New Rule] O365 Excessive SSO Logon Errors (#1215)
(cherry picked from commit 64c3f7cdc5)
2021-07-21 06:55:27 +00:00
Austin Songer 47ca92f97a [New Rule] Disable Windows Event and Security Logs (#1181)
(cherry picked from commit c82790f588)
2021-07-21 06:45:03 +00:00
Austin Songer 77b80d7e6d [Rule Tuning] Suspicious CertUtil Commands (#1180)
* update name to Suspicious CertUtil Commands
* update description, query, and filename

(cherry picked from commit 4a11ef9514)
2021-07-21 06:27:05 +00:00
Austin Songer c6987f2484 [Rule Tuning] External IP Lookup from Non-Browser Process (#1147)
* Added a couple domains

ipapi.co
ip-lookup.net
ipstack.com

(cherry picked from commit 920d973064)
2021-07-21 05:48:06 +00:00
Ross Wolf 9bddabf8e9 Add optional integration field to the schema (#1359)
(cherry picked from commit 816e31cd38)
2021-07-19 18:53:19 +00:00
Samirbous f052e81907 [New Rule] Parent Process PID Spoofing (#1338)
* [New Rule] Parent Process PID Spoofing

* excluding sihost FPs

* Update rules/windows/defense_evasion_parent_process_pid_spoofing.toml

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>

* relinted and added 2 non ecs fields

* Update rules/windows/defense_evasion_parent_process_pid_spoofing.toml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

* Update rules/windows/defense_evasion_parent_process_pid_spoofing.toml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

* Update rules/windows/defense_evasion_parent_process_pid_spoofing.toml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>
Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

(cherry picked from commit 81ab43898c)
2021-07-15 20:56:12 +00:00
Ross Wolf f9cc25565c Add 7.14 to the list of target backport branches (#1341)
(cherry picked from commit 809c06ad5f)
2021-07-14 22:29:51 +00:00
Ross Wolf 51d171c50e [CI] Publish to integrations from on-demand job (#1340)
* Add command to publish integrations PR
* Add workflow_dispatch job to publish package
* Get working directory dynamically
* Fix the repo settings
* Get the absolute path for local-repo
* Filter out 'main' branch
* Update the description for target_branch
* Fix workflow definition
* Move 'if' into job
* Update ref format
* Remove unnecessary E501 suppression
* Add a link to the full commit hash
* s/partial_args/prefix_args

(cherry picked from commit 77c23da1db)
2021-07-14 22:20:08 +00:00
Oliver Gupte fe816747e7 [APM] Adds APM data stream 'traces-apm*' to apm rules (#105334) (#1335)
(cherry picked from commit 7ec97e622f)
2021-07-13 13:05:31 +00:00
Ross Wolf c94b70413e [CI] Update backport job to filter out incompatible rules (#1332)
* Update backport job to filter out incompatible rules
* Make $NEEDS_BACKPORT more honest

(cherry picked from commit 1e6e5ef0a0)
2021-07-12 20:42:16 +00:00
Ross Wolf 4e2a141145 [CI/CD] Create on-demand job to release from Kibana (#1334)
* Add on-demand job to release to Kibana
* Update the inputs structure
* Archive the artifacts

(cherry picked from commit 5b0f72ffc3)
2021-07-12 20:35:11 +00:00
Ross Wolf 6c15c3c0e7 Add command to unstage incompatible rules from git (#1317)
* Add devtools unstage-incompatible-rules command
* Create ephemeral GitChangeEntry for R->D+A
* Undo changes to Github job
* Fix typo in comment
* s/previous_path/original_path

(cherry picked from commit cf736046f1)
2021-07-08 19:44:23 +00:00
Ross Wolf 7b9bed72be Bump the Fleet package version 2021-07-07 21:19:06 -06:00
Ross Wolf 2f03035342 Lock versions for Fleet package 0.13.2 (#1330)
(cherry picked from commit 42957129ad)
2021-07-07 21:43:57 +00:00
Samirbous 43dd58d11d [New Rule] Potential PrintNightmare Exploitation rules (#1326)
* [New Rule] Potential PrintNightmare Exploitation rules

* added Potential PrintNightmare File Modification

* added spoolsv as process name to narrow more the scope

* added Suspicious Print Spooler File Deletion

* removed Suspicious Print Driver Registry Modification cuz of potential noise

* Update privilege_escalation_printspooler_malicious_registry_modification.toml

* Update rules/windows/privilege_escalation_unusual_printspooler_childprocess.toml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

* Update rules/windows/privilege_escalation_unusual_printspooler_childprocess.toml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

* Update rules/windows/privilege_escalation_printspooler_malicious_registry_modification.toml

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

* adjusted description and added a comment for sysmon compatibility

* added FP note and relinted all files

* Update rules/windows/privilege_escalation_printspooler_malicious_driver_file_changes.toml

Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>

* Update rules/windows/privilege_escalation_printspooler_malicious_registry_modification.toml

Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>

* Update rules/windows/privilege_escalation_printspooler_suspicious_file_deletion.toml

Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>

* Update rules/windows/privilege_escalation_unusual_printspooler_childprocess.toml

Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>

* relinted

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>
Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>
(cherry picked from commit 89420ae976)
2021-07-07 16:56:55 +00:00
Samirbous dd24dabb0d [New Rule] Complementary Rules for Recent REvil TTPs (#1329)
* [New Rule] Complementary Rules for Recent REvil TTPs

* added OFN

* relinted and added T1574.002

* removed new line

* Update defense_evasion_disabling_windows_defender_powershell.toml

* corrected rule name

* added a reference url

* Update rules/windows/defense_evasion_disabling_windows_defender_powershell.toml

Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com>

* Update rules/windows/defense_evasion_enable_network_discovery_with_netsh.toml

Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com>

* Update rules/windows/defense_evasion_execution_windefend_unusual_path.toml

Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com>

* Update rules/windows/defense_evasion_execution_windefend_unusual_path.toml

Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com>

Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com>
(cherry picked from commit 9fadc4c1dc)
2021-07-07 15:03:09 +00:00
Justin Ibarra 68e7b6bbe3 Make "config" in note field consistent (#1310)
* Add test to ensure consistent config in note field
* Update inconsistent rule

(cherry picked from commit 63a39665e3)
2021-07-06 23:54:18 +00:00
Ross Wolf 77eaa64bf9 Update the pythonpackage.yml job to only upload artifacts for 'push' (#1322)
(cherry picked from commit 3120252982)
2021-07-06 19:40:55 +00:00
Ross Wolf d6cc14d889 [DOCS] Update branching steps (#1290)
(cherry picked from commit b677264876)
2021-07-02 15:48:40 +00:00
Justin Ibarra df8f4af3fc Add min_stack_version to rule metadata (#1173)
* Add min_stack_version to metadata of rule structure
* validate all "stack versions" between defined and current package
* Use master schemas if min_stack_version > current_package

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>
(cherry picked from commit 781953a0a0)
2021-06-30 21:26:45 +00:00
Ross Wolf 4d54a87f3c Extend metadata with [metadata.extended] section (#1306)
* Extend metadata with `[metadata.extended]` section
* Remove whitespace
* Comment that it's a dict

(cherry picked from commit f1476b1637)
2021-06-25 23:02:36 +00:00
Justin Ibarra fd0eee4cc0 Add new ECS and beats schemas (#1303)
(cherry picked from commit 1099f181f9)
2021-06-23 22:08:39 +00:00
Austin Songer 102b9ff7d5 [New Rule] AWS RDS Security Group Created (#1260)
Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>
Co-authored-by: Brent Murphy <bmurphy@endgame.com>
(cherry picked from commit 8e451f2318)
2021-06-23 00:15:15 +00:00
Austin Songer 6fd6bb1712 [New Rule] AWS RDS Security Group Deleted (#1261)
Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>
Co-authored-by: Brent Murphy <bmurphy@endgame.com>
(cherry picked from commit fe14cd23ed)
2021-06-23 00:09:32 +00:00
Austin Songer 7749086f3b [New Rule] AWS RDS Instance Creation (#1269)
Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>
Co-authored-by: Brent Murphy <bmurphy@endgame.com>
(cherry picked from commit 9d4574b267)
2021-06-23 00:03:06 +00:00
Austin Songer 78c75d71b0 [New Rule] AWS RDS Snapshot Export (#1270)
Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>
Co-authored-by: Brent Murphy <bmurphy@endgame.com>
(cherry picked from commit ccae1dc841)
2021-06-22 23:58:29 +00:00
Austin Songer 4823a40d19 [Rule Tuning] Potential password spraying of microsoft 365 user accounts (#1164)
* Update impact_iam_deactivate_mfa_device.toml
Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>
Co-authored-by: David French <56409778+threat-punter@users.noreply.github.com>

(cherry picked from commit c215c44809)
2021-06-22 17:36:32 +00:00
Ross Wolf ba5f3eed82 Switch from process.ppid to process.parent.pid (#1255)
* Switch from process.ppid to process.parent.pid
* Bump updated date
* Bump updated date

(cherry picked from commit 31f63e728e)
2021-06-22 15:10:59 +00:00
Brent Murphy 549cc9992d [Rule Tuning] Attempts to Brute Force a Microsoft 365 User Account (#1251)
* Update credential_access_microsoft_365_brute_force_user_account_attempt.toml

* add authors

(cherry picked from commit d8ef9a81ef)
2021-06-22 14:39:09 +00:00
Brent Murphy c493c5df67 Update initial_access_smb_windows_file_sharing_activity_to_the_internet.toml (#1225)
(cherry picked from commit a8c9d7174f)
2021-06-22 14:22:18 +00:00
Austin Songer 74132fbbe9 [New Rule] AWS Route 53 Domain Transferred to Another Account (#1198)
(cherry picked from commit ea9a23af8d)
2021-06-22 06:09:14 +00:00
Austin Songer 10d22d9477 [New Rule] AWS Route 53 Domain Transfer Lock Disabled (#1197)
(cherry picked from commit 2cadee1718)
2021-06-22 06:06:10 +00:00
Austin Songer b8a3f43b99 [New Rule] EC2 Full Network Packet Capture Detected (#1175)
(cherry picked from commit d7e0e37e54)
2021-06-22 06:01:05 +00:00
Austin Songer 3996e94bfd [New Rule] Azure Service Principal Credentials Added (#1169)
Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com>
(cherry picked from commit 6986f28af6)
2021-06-22 05:50:17 +00:00
Ross Wolf 045d928daf Lock versions for 0.13.1 package 2021-06-17 12:38:27 -06:00
Ross Wolf 1f5820be76 Bump package version to 0.13.1 2021-06-17 07:23:50 -06:00