-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Rules] Update security rules package to v8.17.6-beta.1 (#12806
- Loading branch information
1 parent
4873ec8
commit 2d3051f
Showing
195 changed files
with
2,432 additions
and
18,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 0 additions & 115 deletions
115
...ecurity_detection_engine/kibana/security_rule/0171f283-ade7-4f87-9521-ac346c68cc9b_6.json
This file was deleted.
Oops, something went wrong.
156 changes: 156 additions & 0 deletions
156
...ecurity_detection_engine/kibana/security_rule/02bab13d-fb14-4d7c-b6fe-4a28874d37c5_4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
{ | ||
"attributes": { | ||
"author": [ | ||
"Elastic" | ||
], | ||
"description": "Identifies an incoming SMB connection followed by the creation of a file with a name similar to ransomware note files. This may indicate a remote ransomware attack via the SMB protocol.", | ||
"from": "now-9m", | ||
"index": [ | ||
"logs-endpoint.events.file-*", | ||
"logs-endpoint.events.network-*" | ||
], | ||
"language": "eql", | ||
"license": "Elastic License v2", | ||
"name": "Potential Ransomware Note File Dropped via SMB", | ||
"note": "## Triage and analysis\n\n## Performance\n\n- This rule may cause medium to high performance impact due to logic scoping all icoming SMB network events.\n\n#### Possible investigation steps\n\n- Investigate the source.ip address connecting to port 445 on this host.\n- Identify the user account that performed the file creation via SMB.\n- If the number of files is too high and source.ip connecting over SMB is unusual isolate the host and block the used credentials.\n- Investigate other alerts associated with the user/host during the past 48 hours.\n\n### False positive analysis\n\n- Remote file creation with similar file naming convention via SMB.\n\n\n### Related rules\n\n- Third-party Backup Files Deleted via Unexpected Process - 11ea6bec-ebde-4d71-a8e9-784948f8e3e9\n- Volume Shadow Copy Deleted or Resized via VssAdmin - b5ea4bfe-a1b2-421f-9d47-22a75a6f2921\n- Volume Shadow Copy Deletion via PowerShell - d99a037b-c8e2-47a5-97b9-170d076827c4\n- Volume Shadow Copy Deletion via WMIC - dc9c1f74-dac3-48e3-b47f-eb79db358f57\n- Suspicious File Renamed via SMB - 78e9b5d5-7c07-40a7-a591-3dbbf464c386\n\n### Response and remediation\n\n- Initiate the incident response process based on the outcome of the triage.\n- Consider isolating the involved host to prevent destructive behavior, which is commonly associated with this activity.\n- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.\n- If any other destructive action was identified on the host, it is recommended to prioritize the investigation and look for ransomware preparation and execution activities.\n- If any backups were affected:\n - Perform data recovery locally or restore the backups from replicated copies (cloud, other servers, etc.).\n- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.\n- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).\n", | ||
"query": "sequence by host.id with maxspan=1s\n [network where host.os.type == \"windows\" and\n event.action == \"connection_accepted\" and destination.port == 445 and source.port >= 49152 and process.pid == 4 and\n source.ip != \"127.0.0.1\" and source.ip != \"::1\" and\n network.type == \"ipv4\" and not endswith(source.address, destination.address)]\n [file where host.os.type == \"windows\" and event.action == \"creation\" and\n process.pid == 4 and user.id : (\"S-1-5-21*\", \"S-1-12-*\") and file.extension : (\"hta\", \"txt\", \"readme\", \"htm*\") and\n file.path : \"C:\\\\Users\\\\*\" and\n /* ransom file name keywords */\n file.name : (\"*read*me*\", \"*lock*\", \"*@*\", \"*RECOVER*\", \"*decrypt*\", \"*restore*file*\", \"*FILES_BACK*\", \"*how*to*\")] with runs=3\n", | ||
"related_integrations": [ | ||
{ | ||
"package": "endpoint", | ||
"version": "^8.2.0" | ||
} | ||
], | ||
"required_fields": [ | ||
{ | ||
"ecs": true, | ||
"name": "destination.address", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "destination.port", | ||
"type": "long" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "event.action", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "file.extension", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "file.name", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "file.path", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "host.id", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "host.os.type", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "network.type", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "process.pid", | ||
"type": "long" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "source.address", | ||
"type": "keyword" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "source.ip", | ||
"type": "ip" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "source.port", | ||
"type": "long" | ||
}, | ||
{ | ||
"ecs": true, | ||
"name": "user.id", | ||
"type": "keyword" | ||
} | ||
], | ||
"risk_score": 73, | ||
"rule_id": "02bab13d-fb14-4d7c-b6fe-4a28874d37c5", | ||
"severity": "high", | ||
"tags": [ | ||
"Domain: Endpoint", | ||
"OS: Windows", | ||
"Use Case: Threat Detection", | ||
"Tactic: Impact", | ||
"Resources: Investigation Guide", | ||
"Data Source: Elastic Defend" | ||
], | ||
"threat": [ | ||
{ | ||
"framework": "MITRE ATT&CK", | ||
"tactic": { | ||
"id": "TA0040", | ||
"name": "Impact", | ||
"reference": "https://attack.mitre.org/tactics/TA0040/" | ||
}, | ||
"technique": [ | ||
{ | ||
"id": "T1485", | ||
"name": "Data Destruction", | ||
"reference": "https://attack.mitre.org/techniques/T1485/" | ||
}, | ||
{ | ||
"id": "T1490", | ||
"name": "Inhibit System Recovery", | ||
"reference": "https://attack.mitre.org/techniques/T1490/" | ||
} | ||
] | ||
}, | ||
{ | ||
"framework": "MITRE ATT&CK", | ||
"tactic": { | ||
"id": "TA0008", | ||
"name": "Lateral Movement", | ||
"reference": "https://attack.mitre.org/tactics/TA0008/" | ||
}, | ||
"technique": [ | ||
{ | ||
"id": "T1021", | ||
"name": "Remote Services", | ||
"reference": "https://attack.mitre.org/techniques/T1021/", | ||
"subtechnique": [ | ||
{ | ||
"id": "T1021.002", | ||
"name": "SMB/Windows Admin Shares", | ||
"reference": "https://attack.mitre.org/techniques/T1021/002/" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"timestamp_override": "event.ingested", | ||
"type": "eql", | ||
"version": 4 | ||
}, | ||
"id": "02bab13d-fb14-4d7c-b6fe-4a28874d37c5_4", | ||
"type": "security-rule" | ||
} |
94 changes: 0 additions & 94 deletions
94
...ecurity_detection_engine/kibana/security_rule/0369e8a6-0fa7-4e7a-961a-53180a4c966e_2.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.