Detection rules for Kaspersky Data sources. Every rule contains its MITRE ATT&CK mapping, an impact rating, and details on what it identifies.
This category lists 19 detection rules.
| Rule | Category | Technique | Impact (C/I/A) |
|---|---|---|---|
| Code Injection Attempt Detection | Defense Evasion, Privilege Escalation | T1055 - Process Injection | C:3 / I:3 / A:2 |
| Kaspersky Agent Disabled or Tampered | Defense Evasion | T1562.001 - Impair Defenses: Disable or Modify Tools | C:3 / I:3 / A:3 |
| Kaspersky Application Privilege Escalation Detection | Defense Evasion, Privilege Escalation | T1055/T1134 - Process Injection and Access Token Manipulation | C:3 / I:3 / A:2 |
| Kaspersky Command and Control Communication Detection | Command and Control | T1071 - Application Layer Protocol | C:3 / I:3 / A:2 |
| Kaspersky Critical Object Detection | Execution | T1204 - User Execution: Malicious File | C:3 / I:3 / A:2 |
| Kaspersky Data Exfiltration Attempts Detection | Exfiltration | T1048 - Exfiltration Over Alternative Protocol | C:3 / I:2 / A:1 |
| Kaspersky Ransomware Behavior Detection | Impact | T1486 - Data Encrypted for Impact | C:3 / I:3 / A:3 |
| Kaspersky Rootkit Detection | Defense Evasion | T1014 - Rootkit | C:3 / I:3 / A:3 |
| Kaspersky Sandbox Evasion Attempts Detection | Defense Evasion, Discovery | T1497 - Virtualization/Sandbox Evasion | C:3 / I:3 / A:2 |
| Kaspersky Suspicious Network Activity Detection | Command and Control | T1071 - Application Layer Protocol | C:3 / I:2 / A:2 |
| Kaspersky Suspicious Scheduled Tasks Detection | Execution, Persistence, Privilege Escalation | T1053 - Scheduled Task/Job | C:3 / I:3 / A:2 |
| Kaspersky Suspicious Service Installation Detection | Persistence, Privilege Escalation | T1543.003 - Create or Modify System Process: Windows Service | C:2 / I:2 / A:2 |
| Kaspersky System File Tampering Detection | Defense Evasion | T1562.001 - Impair Defenses: Disable or Modify Tools | C:2 / I:3 / A:1 |
| Kaspersky Trusted Application Compromise Detection | Defense Evasion | T1218 - Signed Binary Proxy Execution | C:3 / I:3 / A:2 |
| Kaspersky WMI Abuse Detection | Execution | T1047 - Windows Management Instrumentation | C:3 / I:3 / A:2 |
| Lateral Movement Indicators Detection | Lateral Movement | T1021 - Remote Services | C:3 / I:3 / A:2 |
| Living Off the Land Binaries (LOLBins) Abuse Detection | Defense Evasion | T1218 - System Binary Proxy Execution | C:3 / I:3 / A:2 |
| Process Hollowing Detection | Defense Evasion, Privilege Escalation | T1055.012 - Process Injection: Process Hollowing | C:3 / I:3 / A:2 |
| Suspicious Packed Executable Detection | Defense Evasion | T1027.002 - Obfuscated Files or Information: Software Packing | C:3 / I:3 / A:2 |
Rule Example
Below is an example of a rule definition for Code Injection Attempt Detection (view in repository):
# Rule version v1.0.0
dataTypes:
- antivirus-kaspersky
name: Code Injection Attempt Detection
impact:
confidentiality: 3
integrity: 3
availability: 2
category: Defense Evasion, Privilege Escalation
technique: "T1055 - Process Injection"
adversary: origin
references:
- https://attack.mitre.org/techniques/T1055/
- https://support.kaspersky.com/KESWin/11/en-us/151065.htm
description: |
Detects attempts to inject malicious code into legitimate processes. This technique is commonly used by malware to evade detection and gain elevated privileges by running within trusted processes.
Next Steps:
1. Immediately isolate the affected system to prevent lateral movement
2. Identify the source process that attempted the injection
3. Check if the malware was successfully quarantined or if manual removal is needed
4. Review system logs for any suspicious activities around the same timeframe
5. Scan the system with updated antivirus definitions
6. Check for persistence mechanisms (scheduled tasks, registry keys, services)
7. Review network connections from the affected host for C2 communications
8. Consider reimaging the system if critical processes were compromised
where: |
(regexMatch("log.msg", "(?i).*(inject|injection|CreateRemoteThread|SetWindowsHookEx|WriteProcessMemory).*") ||
(contains("log.cs4", ["inject", "hooking", "trojan", "backdoor"]) &&
contains("action", ["terminate", "delete", "quarantine"]))) &&
contains("log.msg", ["lsass", "csrss", "winlogon", "services", "svchost", "explorer"])
deduplicateBy:
- origin.host
- log.cs4
Rule Details
Code Injection Attempt Detection
Identifies efforts to insert malicious code into trusted processes. Malware frequently uses this method to avoid detection and obtain elevated privileges by executing inside legitimate processes.
Category: Defense Evasion, Privilege Escalation
Technique: T1055 - Process Injection
Impact: C:3 / I:3 / A:2
Rule file: code_injection_attempts.yml
Reference: https://attack.mitre.org/techniques/T1055/
Reference: https://support.kaspersky.com/KESWin/11/en-us/151065.htm
Kaspersky Agent Disabled or Tampered
Detects disabling, stopping, or tampering with the Kaspersky security agent. This serves as a key sign of defense evasion, since attackers turn off endpoint protection to run malware without being noticed.
Category: Defense Evasion
Technique: T1562.001 - Impair Defenses: Disable or Modify Tools
Impact: C:3 / I:3 / A:3
Rule file: kaspersky_agent_tampering.yml
Reference: https://support.kaspersky.com/
Kaspersky Application Privilege Escalation Detection
Identifies attempts to raise privileges through application manipulation, process injection, or unauthorized permission elevation monitored by Kaspersky endpoint protection. These methods are often used by attackers to acquire higher-level permissions on compromised systems.
Category: Defense Evasion, Privilege Escalation
Technique: T1055/T1134 - Process Injection and Access Token Manipulation
Impact: C:3 / I:3 / A:2
Rule file: privilege_escalation_attempts.yml
Reference: https://support.kaspersky.com/KLMS/8.2/en-US/151684.htm
Reference: https://attack.mitre.org/techniques/T1055/
Reference: https://attack.mitre.org/techniques/T1134/
Kaspersky Command and Control Communication Detection
Detects possible command and control (C2) communication attempts flagged by Kaspersky, such as suspicious outbound connections, malware callbacks, and botnet communication patterns. This rule fires when Kaspersky detects network threats tied to botnet activity, C2 communications, or malware beaconing that was not blocked successfully.
Category: Command and Control
Technique: T1071 - Application Layer Protocol
Impact: C:3 / I:3 / A:2
Rule file: command_and_control_communication.yml
Reference: https://attack.mitre.org/techniques/T1071/
Reference: https://support.kaspersky.com/KLMS/8.2/en-US/151504.htm
Kaspersky Critical Object Detection
Detects critical threats identified by Kaspersky, such as malware, trojans, or other dangerous objects needing immediate attention. High-severity detections often point to active threats.
Category: Execution
Technique: T1204 - User Execution: Malicious File
Impact: C:3 / I:3 / A:2
Rule file: critical_object_detected.yml
Reference: https://support.kaspersky.com/ScanEngine/1.0/en-US/186767.htm
Reference: https://attack.mitre.org/techniques/T1204/
Kaspersky Data Exfiltration Attempts Detection
Detects possible data exfiltration attempts flagged by Kaspersky through suspicious network traffic patterns, large data transfers, or connections to suspicious external destinations. This rule watches for network threats, trojan/backdoor detections, and suspicious data transfer patterns that could signal data exfiltration.
Category: Exfiltration
Technique: T1048 - Exfiltration Over Alternative Protocol
Impact: C:3 / I:2 / A:1
Rule file: data_exfiltration_attempts.yml
Reference: https://attack.mitre.org/techniques/T1048/
Reference: https://support.kaspersky.com/KLMS/8.2/en-US/151684.htm
Kaspersky Ransomware Behavior Detection
Detects ransomware behavior patterns identified by Kaspersky, such as mass file encryption, ransom note creation, and malware classifications specific to ransomware.
Category: Impact
Technique: T1486 - Data Encrypted for Impact
Impact: C:3 / I:3 / A:3
Rule file: kaspersky_ransomware_behavior.yml
Reference: https://support.kaspersky.com/
Reference: https://attack.mitre.org/techniques/T1486/
Kaspersky Rootkit Detection
Detects rootkit activity identified by Kaspersky security, such as hidden processes, kernel-level modifications, and rootkit-specific malware classifications that point to a deeply compromised system.
Category: Defense Evasion
Technique: T1014 - Rootkit
Impact: C:3 / I:3 / A:3
Rule file: kaspersky_rootkit_detection.yml
Reference: https://support.kaspersky.com/
Reference: https://attack.mitre.org/techniques/T1014/
Kaspersky Sandbox Evasion Attempts Detection
Identifies malware that tries to detect and evade sandbox environments. This covers time-based evasion, environment checks, anti-VM techniques, and other behaviors intended to avoid analysis in controlled environments.
Category: Defense Evasion, Discovery
Technique: T1497 - Virtualization/Sandbox Evasion
Impact: C:3 / I:3 / A:2
Rule file: sandbox_evasion_attempts.yml
Reference: https://www.kaspersky.com/enterprise-security/malware-sandbox
Reference: https://attack.mitre.org/techniques/T1497/
Kaspersky Suspicious Network Activity Detection
Detects suspicious network activities, such as unusual connections, possible C2 communications, or network-based attacks identified by Kaspersky security monitoring. This rule triggers when Kaspersky blocks network connections matching suspicious patterns and multiple similar events originate from the same host.
Category: Command and Control
Technique: T1071 - Application Layer Protocol
Impact: C:3 / I:2 / A:2
Rule file: suspicious_network_activity.yml
Reference: https://attack.mitre.org/techniques/T1071/
Reference: https://attack.mitre.org/techniques/T1043/
Kaspersky Suspicious Scheduled Tasks Detection
Detects suspicious scheduled task creation or modification identified by Kaspersky, potentially indicating persistence mechanisms used by malware or attackers. Attackers commonly abuse scheduled tasks to maintain persistence, run malicious code at set times, or escalate privileges.
Category: Execution, Persistence, Privilege Escalation
Technique: T1053 - Scheduled Task/Job
Impact: C:3 / I:3 / A:2
Rule file: suspicious_scheduled_tasks.yml
Reference: https://attack.mitre.org/techniques/T1053/
Reference: https://support.kaspersky.com/ScanEngine/1.0/en-US/186767.htm
Kaspersky Suspicious Service Installation Detection
Detects suspicious attempts to install or modify Windows services identified by Kaspersky, which could point to malware persistence mechanisms or privilege escalation attempts. Service manipulation is a common technique malware uses to maintain persistence on compromised systems.
Category: Persistence, Privilege Escalation
Technique: T1543.003 - Create or Modify System Process: Windows Service
Impact: C:2 / I:2 / A:2
Rule file: suspicious_service_installation.yml
Reference: https://support.kaspersky.com/ScanEngine/2.1/en-US/186767.htm
Kaspersky System File Tampering Detection
Detects efforts to tamper with critical system files, Windows services, or protected system components. This covers unauthorized changes to system binaries, service configurations, or attempts to manipulate security-critical files.
Category: Defense Evasion
Technique: T1562.001 - Impair Defenses: Disable or Modify Tools
Impact: C:2 / I:3 / A:1
Rule file: system_file_tampering_detection.yml
Reference: https://attack.mitre.org/techniques/T1036/
Kaspersky Trusted Application Compromise Detection
Identifies when legitimate or trusted applications show malicious behavior, potentially signaling compromise or exploitation. This includes detecting signed binaries used for malicious purposes or trusted processes performing suspicious activities. This is a critical security event indicating an attacker may be using living-off-the-land techniques to evade detection.
Category: Defense Evasion
Technique: T1218 - Signed Binary Proxy Execution
Impact: C:3 / I:3 / A:2
Rule file: trusted_application_compromise.yml
Reference: https://attack.mitre.org/techniques/T1218/
Reference: https://attack.mitre.org/techniques/T1574/
Kaspersky WMI Abuse Detection
Detects possible Windows Management Instrumentation (WMI) abuse identified by Kaspersky, such as suspicious WMI queries, event subscriptions, or process creation through WMI. WMI is a legitimate Windows component that attackers often abuse for lateral movement, persistence, and code execution.
Category: Execution
Technique: T1047 - Windows Management Instrumentation
Impact: C:3 / I:3 / A:2
Rule file: wmi_abuse_detection.yml
Reference: https://attack.mitre.org/techniques/T1047/
Reference: https://support.kaspersky.com/KLMS/8.2/en-US/151684.htm
Lateral Movement Indicators Detection
Detects signs of lateral movement attempts across the network via Kaspersky antivirus logs.
Attackers use various techniques including PSExec, WMI, RDP, SMB shares, and exploitation tools to move
from one compromised system to others, extending their access and control across the network. This rule
identifies blocked or detected activities that could point to lateral movement attempts.
Category: Lateral Movement
Technique: T1021 - Remote Services
Impact: C:3 / I:3 / A:2
Rule file: lateral_movement_indicators.yml
Reference: https://attack.mitre.org/tactics/TA0008/
Reference: https://support.kaspersky.com/KESWin/11/en-us/151065.htm
Living Off the Land Binaries (LOLBins) Abuse Detection
Identifies when legitimate Windows system binaries, known as LOLBins, are used maliciously to execute harmful code. Adversaries exploit these trusted utilities to evade security controls and sustain persistence. LOLBins pose a serious risk since they are Microsoft-signed binaries that most security tools trust.
Category: Defense Evasion
Technique: T1218 - System Binary Proxy Execution
Impact: C:3 / I:3 / A:2
Rule file: lolbins_abuse.yml
Reference: https://attack.mitre.org/techniques/T1218/
Reference: https://lolbas-project.github.io/
Reference: https://www.kaspersky.com/enterprise-security/wiki-section/products/fileless-threats-protection
Process Hollowing Detection
Detects process hollowing attempts in which malware launches a new process in a suspended state, unmaps its memory, and substitutes it with malicious code. This sophisticated method is used to avoid detection by concealing malicious code inside legitimate processes.
Category: Defense Evasion, Privilege Escalation
Technique: T1055.012 - Process Injection: Process Hollowing
Impact: C:3 / I:3 / A:2
Rule file: process_hollowing_detection.yml
Reference: https://www.kaspersky.com/enterprise-security/wiki-section/products/behavior-based-protection
Suspicious Packed Executable Detection
Detects instances where Kaspersky flags suspicious packed executables, which malware commonly employs to avoid detection and analysis. Packed executables rely on compression or encryption to conceal their actual content and make reverse engineering more difficult.
Category: Defense Evasion
Technique: T1027.002 - Obfuscated Files or Information: Software Packing
Impact: C:3 / I:3 / A:2
Rule file: suspicious_packed_executables.yml
Reference: https://www.kaspersky.com/resource-center/threats/suspicious-packers