{"id":"b9cbbc17-d00d-4e3d-a827-b06d03d2380d","title":"Monitoring For Persistence Via BITS","description":"BITS will allow you to schedule a command to execute after a successful download to notify you that the job is finished.\nWhen the job runs on the system the command specified in the BITS job will be executed.\nThis can be abused by actors to create a backdoor within the system and for persistence.\nIt will be chained in a BITS job to schedule the download of malware/additional binaries and execute the program after being downloaded.\n","author":"Sreeman","status":"test","level":"medium","date":"2020-10-29","modified":"2024-01-25","tags":["attack.persistence","attack.execution","attack.stealth","attack.t1197"],"technique_ids":["T1197"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Unknown"],"references":["https://www.fireeye.com/blog/threat-research/2020/10/kegtap-and-singlemalt-with-a-ransomware-chaser.html","http://0xthem.blogspot.com/2014/03/t-emporal-persistence-with-and-schtasks.html","https://isc.sans.edu/diary/Wipe+the+drive+Stealthy+Malware+Persistence+Mechanism+-+Part+1/15394"],"source_path":"rules/windows/process_creation/proc_creation_win_bitsadmin_potential_persistence.yml","source_sha256":"51ddb3daea64948a147f3adb583019176db93af85ad04eb19f1397daf3425867","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_bitsadmin_potential_persistence.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Monitoring For Persistence Via BITS\nid: b9cbbc17-d00d-4e3d-a827-b06d03d2380d\nstatus: test\ndescription: |\n    BITS will allow you to schedule a command to execute after a successful download to notify you that the job is finished.\n    When the job runs on the system the command specified in the BITS job will be executed.\n    This can be abused by actors to create a backdoor within the system and for persistence.\n    It will be chained in a BITS job to schedule the download of malware/additional binaries and execute the program after being downloaded.\nreferences:\n    - https://www.fireeye.com/blog/threat-research/2020/10/kegtap-and-singlemalt-with-a-ransomware-chaser.html\n    - http://0xthem.blogspot.com/2014/03/t-emporal-persistence-with-and-schtasks.html\n    - https://isc.sans.edu/diary/Wipe+the+drive+Stealthy+Malware+Persistence+Mechanism+-+Part+1/15394\nauthor: Sreeman\ndate: 2020-10-29\nmodified: 2024-01-25\ntags:\n    - attack.persistence\n    - attack.execution\n    - attack.stealth\n    - attack.t1197\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection_img:\n        - Image|endswith: '\\bitsadmin.exe'\n        - OriginalFileName: 'bitsadmin.exe'\n    selection_cli_notify_1:\n        CommandLine|contains: '/SetNotifyCmdLine'\n    selection_cli_notify_2:\n        CommandLine|contains:\n            - '%COMSPEC%'\n            - 'cmd.exe'\n            - 'regsvr32.exe'\n    selection_cli_add_1:\n        CommandLine|contains: '/Addfile'\n    selection_cli_add_2:\n        CommandLine|contains:\n            - 'http:'\n            - 'https:'\n            - 'ftp:'\n            - 'ftps:'\n    condition: selection_img and (all of selection_cli_notify_* or all of selection_cli_add_*)\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1197","id":"T1197","name":"BITS Jobs","page":"techniques/enterprise/T1197/"}],"data_path":"data/detection-rules/b9cbbc17-d00d-4e3d-a827-b06d03d2380d.json","kind":"sigma"}
