{"id":"e31033fc-33f0-4020-9a16-faf9b31cbf08","title":"PUA - Netcat Suspicious Execution","description":"Detects execution of Netcat. Adversaries may use a non-application layer protocol for communication between host and C2 server or among infected hosts within a network","author":"frack113, Florian Roth (Nextron Systems)","status":"test","level":"high","date":"2021-07-21","modified":"2023-02-08","tags":["attack.command-and-control","attack.t1095"],"technique_ids":["T1095"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate ncat use"],"references":["https://nmap.org/ncat/","https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1095/T1095.md","https://www.revshells.com/"],"source_path":"rules/windows/process_creation/proc_creation_win_pua_netcat.yml","source_sha256":"ed510e9dba1b4f4bf17d6e71282783006c71f5401611e4c8c7d894f696bb4f31","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_pua_netcat.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: PUA - Netcat Suspicious Execution\nid: e31033fc-33f0-4020-9a16-faf9b31cbf08\nstatus: test\ndescription: Detects execution of Netcat. Adversaries may use a non-application layer protocol for communication between host and C2 server or among infected hosts within a network\nreferences:\n    - https://nmap.org/ncat/\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1095/T1095.md\n    - https://www.revshells.com/\nauthor: frack113, Florian Roth (Nextron Systems)\ndate: 2021-07-21\nmodified: 2023-02-08\ntags:\n    - attack.command-and-control\n    - attack.t1095\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        # can not use OriginalFileName as is empty\n        Image|endswith:\n            - '\\nc.exe'\n            - '\\ncat.exe'\n            - '\\netcat.exe'\n    selection_cmdline:\n        # Typical command lines\n        CommandLine|contains:\n            - ' -lvp '\n            - ' -lvnp'\n            - ' -l -v -p '\n            - ' -lv -p '\n            - ' -l --proxy-type http '\n            # - ' --exec cmd.exe ' # Not specific enough for netcat\n            - ' -vnl --exec '\n            - ' -vnl -e '\n            - ' --lua-exec '\n            - ' --sh-exec '\n    condition: 1 of selection_*\nfalsepositives:\n    - Legitimate ncat use\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1095","id":"T1095","name":"Non-Application Layer Protocol","page":"techniques/enterprise/T1095/"}],"data_path":"data/detection-rules/e31033fc-33f0-4020-9a16-faf9b31cbf08.json","kind":"sigma"}
