Files
splunk-security_content/detections/batch_file_write_system32.json
2019-03-27 11:13:11 -04:00

82 lines
3.2 KiB
JSON

{
"asset_type": "Endpoint",
"channel": "ESCU",
"confidence": "high",
"correlation_rule": {
"notable": {
"nes_fields": "dest, file_name",
"rule_description": "A batch file was written to the system directory on $dest$.",
"rule_title": "Batch file write to system32 detected on $dest$"
},
"risk": {
"risk_object": "dest",
"risk_object_type": [
"system"
],
"risk_score": 80
},
"suppress": {
"suppress_fields": "dest,file_name",
"suppress_period": "14400s"
}
},
"creation_date": "2018-12-14",
"data_metadata": {
"data_models": [
"Endpoint"
],
"data_source": [
"Endpoint Intel"
],
"providing_technologies": [
"Carbon Black Response",
"CrowdStrike Falcon",
"Sysmon"
]
},
"eli5": "This search looks at file modifications across your hosts, as well as for evidence of batch files being written to paths that include \"system32.\" This activity is consistent with some SamSam attacks and is, in general, suspicious.",
"how_to_implement": "You must be ingesting data that records the file-system activity from your hosts to populate the Endpoint file-system data-model node. If you are using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which you want to collect data.",
"known_false_positives": "It is possible for this search to generate a notable event for a batch file write to a path that includes the string \"system32\", but is not the actual Windows system directory. As such, you should confirm the path of the batch file identified by the search. In addition, a false positive may be generated by an administrator copying a legitimate batch file in this directory tree. You should confirm that the activity is legitimate and modify the search to add exclusions, as necessary.",
"maintainers": [
{
"company": "Splunk",
"email": "rvaldez@splunk.com",
"name": "Rico Valdez"
}
],
"mappings": {
"cis20": [
"CIS 8"
],
"kill_chain_phases": [
"Delivery"
],
"mitre_attack": [],
"nist": [
"PR.PT",
"DE.CM"
]
},
"modification_date": "2018-12-14",
"original_authors": [
{
"company": "Splunk",
"email": "rvaldez@splunk.com",
"name": "Rico Valdez"
}
],
"scheduling": {
"cron_schedule": "0 * * * *",
"earliest_time": "-70m@m",
"latest_time": "-10m@m"
},
"search": "| tstats `summariesonly` count min(_time) as firstTime max(_time) as lastTime values(Filesystem.dest) as dest values(Filesystem.file_name) as file_name values(Filesystem.user) as user from datamodel=Endpoint.Filesystem by Filesystem.file_path | `drop_dm_object_name(Filesystem)` | `ctime(lastTime)` | `ctime(firstTime)`| rex field=file_name \"(?<file_extension>\\.[^\\.]+)$\" | search file_path=*system32* AND file_extension=.bat",
"search_description": "The search looks for a batch file (.bat) written to the Windows system directory tree.",
"search_id": "503d17cb-9eab-4cf8-a20e-01d5c6987ae3",
"search_name": "Batch File Write to System32",
"search_type": "detection",
"security_domain": "endpoint",
"spec_version": 1,
"version": "1.0"
}