SonicWall

Detection rules for SonicWall data sources. Each rule includes its MITRE ATT&CK mapping, impact rating, and a description of what it detects. These rules analyze events with the data type firewall-sonicwall, which the SonicWall integration sends.

This category contains 7 detection rules.

RuleCategoryTechniqueImpact (C/I/A)
SonicWall Anti-Spyware DetectionDiscoveryT1082 - System Information DiscoveryC:3 / I:2 / A:1
SonicWall Botnet Activity DetectedCommand and ControlT1071 - Application Layer ProtocolC:3 / I:3 / A:2
SonicWall Capture ATP Malicious VerdictExecutionT1204 - User ExecutionC:3 / I:3 / A:2
SonicWall Gateway Anti-Virus DetectionCommand and ControlT1105 - Ingress Tool TransferC:3 / I:3 / A:2
SonicWall Intrusion Prevention System AlertInitial AccessT1190 - Exploit Public-Facing ApplicationC:3 / I:3 / A:3
SonicWall Management Interface Authentication FailuresCredential AccessT1110 - Brute ForceC:3 / I:2 / A:1
SonicWall SSL VPN Authentication FailuresCredential AccessT1133 - External Remote ServicesC:3 / I:2 / A:1

Rule Example

Below is an example of a rule definition for SonicWall Anti-Spyware Detection (view in repository):

# Rule version v2.1.0

dataTypes:
  - firewall-sonicwall
name: SonicWall Anti-Spyware Detection
impact:
  confidentiality: 3
  integrity: 2
  availability: 1
category: Discovery
technique: "T1082 - System Information Discovery"
adversary: origin
references:
  - https://www.sonicwall.com/techdocs/pdf/sonicos-6-5-4-log-events-reference-guide.pdf
  - https://attack.mitre.org/techniques/T1082/
description: |
  Detects when SonicWall Anti-Spyware service identifies and blocks spyware,
  adware or other potentially unwanted programs (PUPs) that may be attempting
  to collect sensitive information or establish persistence on the network.

  Next Steps:
  - Review the detected spyware category and priority level.
  - Investigate the source IP for other malicious activities.
  - Check whether the blocked spyware represents a targeted attack or a
    widespread infection.
  - Verify Anti-Spyware policies are properly configured and signatures
    up-to-date.
  - Consider quarantining the affected host if multiple detections cluster
    on the same source.
where: |
  (
    oneOf("log.eventCode", ["1157", "1158", "1159"]) ||
    exists("log.spywareCategory") ||
    contains("log.message", ["spyware", "Anti-Spyware"]) ||
    contains("log.contentCategory", "Anti-Spyware")
  ) && equals("actionResult", "denied")
afterEvents:
  - with:
      - field: origin.ip
        operator: filter_term
        value: '{{.origin.ip}}'
    within: 1h
    count: 3
deduplicateBy:
  - adversary.ip
  - target.host

Rule Details

SonicWall Anti-Spyware Detection

Detects when SonicWall Anti-Spyware service identifies and blocks spyware,
adware or other potentially unwanted programs (PUPs) that may be attempting
to collect sensitive information or establish persistence on the network.

SonicWall Botnet Activity Detected

Detects potential botnet command and control (C2) communication identified
by the SonicWall Botnet Filter: an internal host tried to reach an address
that SonicWall's botnet database or dynamic botnet list marks as a botnet
server, and the firewall blocked it (events 1201 and 1519, "Suspected Botnet
responder blocked"). Listed addresses blocked at the perimeter while trying
to connect in ("Suspected Botnet initiator blocked") and addresses on the
firewall's own custom botnet list are not alerted. One alert is raised per
firewall and listed address; repeats are suppressed for seven days.

SonicWall Capture ATP Malicious Verdict

Detects when SonicWall Capture ATP (Advanced Threat Protection) sandboxes a
file and returns a malicious verdict. Indicates an attempted malware
delivery. Also covers RTDMI (Real-Time Deep Memory Inspection) verdicts
which share the ATP verdict pipeline on the firewall.

SonicWall Gateway Anti-Virus Detection

Detects when SonicWall Gateway Anti-Virus (GAV) identifies and blocks
malicious content in HTTP/HTTPS/FTP/SMTP traffic. Signals a malware delivery
attempt at the network perimeter.

SonicWall Intrusion Prevention System Alert

Detects when SonicWall Intrusion Prevention System (IPS) blocks an attack
matching a known signature — buffer overflow attempts, SQL injection,
cross-site scripting, exploit kits, etc. Reflects the IPS Prevention Alert
message family (event codes 88 / 89 / 100 / 785) as well as the descriptive
log.message, log.contentCategory and log.ipsCategory fields.

SonicWall Management Interface Authentication Failures

Detects failed authentication attempts against the SonicWall management
interface (GUI/CLI/API). Repeated failures from a single source IP suggest
a brute-force or credential-stuffing attack targeting admin credentials.
It counts logins denied due to bad credentials (events 32, 33 and 200),
not SSO probe failures, policy denials or allowed logins, and raises one
alert per source address for seven days.

SonicWall SSL VPN Authentication Failures

Detects failed SSL VPN / NetExtender authentication attempts on a SonicWall
firewall. Repeated failures from a single source IP indicate brute-force or
credential-stuffing attacks against the remote access surface.