title: Suspicious .NET Framework Binary Launch from User-Writable Path or AppData Scheduled Task Persistence id: 7f15a101-8c2d-4a91-b501-001500000001 status: experimental description: Detects user-writable binaries spawning .NET framework utilities (RegAsm.exe, InstallUtil.exe, MSBuild.exe, vbc.exe, AppLaunch.exe, frequently abused as RAT host processes) or registering scheduled tasks from user-writable directories. Process-creation telemetry identifies suspicious launches rather than confirming in-memory hollowing. author: Odin by Brandefense date: 2026/11/18 references: - https://attack.mitre.org/techniques/T1219/ tags: - attack.command_and_control - attack.t1219 - attack.defense_evasion - attack.t1218.009 logsource: category: process_creation product: windows detection: selection_dotnet_framework_spawn: ParentImage|contains: - '\AppData\Local\Temp\' - '\AppData\Roaming\' - '\AppData\Local\Programs\' - '\ProgramData\' Image|endswith: - '\RegAsm.exe' - '\InstallUtil.exe' - '\MSBuild.exe' - '\vbc.exe' - '\AppLaunch.exe' selection_rat_schtasks_flags: Image|endswith: '\schtasks.exe' CommandLine|contains|all: - '/create' - '/sc ' selection_rat_schtasks_paths: CommandLine|contains: - '\AppData\Roaming\' - '\AppData\Local\Temp\' - '\ProgramData\' filter_legit_visualstudio: # Exact IDE executables only; adjust edition and year to your fleet. ParentImage: - 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.exe' - 'C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe' - 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe' condition: (selection_dotnet_framework_spawn or (selection_rat_schtasks_flags and selection_rat_schtasks_paths)) and not filter_legit_visualstudio falsepositives: - Custom developer build scripts running out of ProgramData CI workspaces (exclude explicit runner service paths) level: high --- title: User-Writable or Script Process Outbound Connection to Telegram Bot API id: 7f15a102-8c2d-4a91-b501-001500000002 status: experimental description: Detects Windows script interpreters, LOLBins, or user-writable binaries outside approved automation hosts establishing TLS connections to api.telegram.org for bidirectional web-service C2 (T1102.002) or stealer exfiltration. author: Odin by Brandefense date: 2026/11/18 references: - https://attack.mitre.org/techniques/T1102/002/ tags: - attack.command_and_control - attack.t1102.002 logsource: category: network_connection product: windows detection: selection_telegram_api: Initiated: 'true' DestinationHostname|endswith: 'api.telegram.org' selection_suspicious_origin: Image|contains: - '\AppData\Local\Temp\' - '\AppData\Roaming\' - '\AppData\Local\Programs\' - '\ProgramData\' - '\powershell.exe' - '\pwsh.exe' - '\wscript.exe' - '\cscript.exe' - '\mshta.exe' - '\curl.exe' - '\node.exe' - '\python.exe' filter_approved_hosts: Computer: - 'SRV-SOC-WEBHOOK01' - 'SRV-DEVOPS-NOTIFY01' filter_official_telegram_desktop: # Exact executable path only; add per-user installs you approve. Image: 'C:\Program Files\Telegram Desktop\Telegram.exe' condition: selection_telegram_api and selection_suspicious_origin and not filter_approved_hosts and not filter_official_telegram_desktop falsepositives: - Authorized DevOps notification scripts on additional automation hosts not yet listed in filter_approved_hosts - Portable tools in AppData\Local\Programs initiating Telegram notifications (correlate with process-creation Authenticode signature events) level: high --- title: Exploratory Hunt - Linux Script Runtime Invoking Telegram Bot API or HTTP/2 Flood Arguments id: 7f15a103-8c2d-4a91-b501-001500000003 status: experimental description: Exploratory hunting rule for Linux script interpreters (node, python, curl) invoking Telegram Bot API endpoints or executing from temporary directories with proxy-list and HTTP/2 flood CLI arguments. author: Odin by Brandefense date: 2026/11/18 references: - https://attack.mitre.org/techniques/T1498/001/ - https://attack.mitre.org/techniques/T1102/002/ tags: - attack.impact - attack.t1498.001 - attack.command_and_control - attack.t1102.002 logsource: category: process_creation product: linux detection: selection_runtime: Image|endswith: - '/node' - '/nodejs' - '/python3' - '/python' - '/curl' selection_telegram_or_temp_origin: CommandLine|contains: - 'api.telegram.org/bot' - '/getUpdates' - '/sendMessage' - '/tmp/' - '/var/tmp/' - '/dev/shm/' selection_botnet_or_flood_flags: CommandLine|contains: - 'api.telegram.org/bot' - 'proxies.txt' - 'proxy.txt' - '--threads' - '--rps' - 'http2' condition: selection_runtime and selection_telegram_or_temp_origin and selection_botnet_or_flood_flags falsepositives: - Authorized monitoring or notification scripts running from /tmp on non-hardened Linux hosts level: medium