{"id":"0649be4a-aeb0-45b0-b89e-7f1668f6d9c0","title":"IIS WebServer Log Deletion via CommandLine Utilities","description":"Detects attempts to delete Internet Information Services (IIS) log files via command line utilities, which is a common defense evasion technique used by attackers to cover their tracks.\nThreat actors often abuse vulnerabilities in web applications hosted on IIS servers to gain initial access and later delete IIS logs to evade detection.\n","author":"Swachchhanda Shrawan Poudel (Nextron Systems)","status":"experimental","level":"medium","date":"2025-09-02","modified":"","tags":["attack.stealth","attack.t1070"],"technique_ids":["T1070"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Deletion of IIS logs that are older than a certain retention period as part of regular maintenance activities.","Legitimate schedule tasks or scripts that clean up log files regularly."],"references":["https://learn.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/managing-iis-log-file-storage"],"source_path":"rules/windows/process_creation/proc_creation_win_iis_logs_deletion.yml","source_sha256":"839a2eb81042980ab9e3eb040b1146af23686e9c322f3388f906695943dcdbc3","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_iis_logs_deletion.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: IIS WebServer Log Deletion via CommandLine Utilities\nid: 0649be4a-aeb0-45b0-b89e-7f1668f6d9c0\nrelated:\n    - id: 3eb8c339-a765-48cc-a150-4364c04652bf\n      type: similar\nstatus: experimental\ndescription: |\n    Detects attempts to delete Internet Information Services (IIS) log files via command line utilities, which is a common defense evasion technique used by attackers to cover their tracks.\n    Threat actors often abuse vulnerabilities in web applications hosted on IIS servers to gain initial access and later delete IIS logs to evade detection.\nreferences:\n    - https://learn.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/managing-iis-log-file-storage\nauthor: Swachchhanda Shrawan Poudel (Nextron Systems)\ndate: 2025-09-02\ntags:\n    - attack.stealth\n    - attack.t1070\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith:\n              - '\\cmd.exe'\n              - '\\powershell_ise.exe'\n              - '\\powershell.exe'\n              - '\\pwsh.exe'\n        - OriginalFileName:\n              - 'cmd.exe'\n              - 'powershell.exe'\n              - 'powershell_ise.exe'\n              - 'pwsh.dll'\n    selection_cli_del:\n        CommandLine|contains:\n            - 'del '\n            - 'erase '\n            - 'rm '\n            - 'remove-item '\n            - 'rmdir '\n    selection_cli_iis_dir:\n        CommandLine|contains: '\\inetpub\\logs\\'\n    condition: all of selection_*\nfalsepositives:\n    - Deletion of IIS logs that are older than a certain retention period as part of regular maintenance activities.\n    - Legitimate schedule tasks or scripts that clean up log files regularly.\n    # More Fp cases\n    # https://learn.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/managing-iis-log-file-storage#02\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1070","id":"T1070","name":"Indicator Removal","page":"techniques/enterprise/T1070/"}],"data_path":"data/detection-rules/0649be4a-aeb0-45b0-b89e-7f1668f6d9c0.json","kind":"sigma"}
