Skip to content

refactor(sonicwall): revamp filter and correlation rules - #2443

Merged
Kbayero merged 1 commit into
v11from
backlog/sonicwall-filter-and-rules-refresh
Aug 10, 2026
Merged

refactor(sonicwall): revamp filter and correlation rules#2443
Kbayero merged 1 commit into
v11from
backlog/sonicwall-filter-and-rules-refresh

Conversation

@JocLRojas

Copy link
Copy Markdown
Contributor

What changed

Rebuild the SonicWall filter so the parsed events use clear, human-readable field names and match the fields their correlation rules actually consume. Refresh the seven remaining rules so they fire on the real fields the filter emits, and drop three rules that no longer made sense as security signals for this integration.

Why

The filter was producing fields that the correlation rules could not
match, so the SonicWall integration had generated zero alerts. Cryptic field names also made the data hard to work with in dashboards and investigations. This change brings the filter output in line with the rules and with what an analyst expects to see.

Related issue

N/A

Rebuild the SonicWall filter so the parsed events use clear, human-readable
field names and match the fields their correlation rules actually consume.
Refresh the seven remaining rules so they fire on the real fields the
filter emits, and drop three rules that no longer made sense as security
signals for this integration.

Filter changes (filters/sonicwall/sonic_wall.yml):
- Emit clean origin.ip / target.ip (no port or interface glued on)
- Emit protocol as tcp/udp only, keep the service hint separately
- Emit action / actionResult without leftover quotes
- Rescue the full text of quoted fields (message, note, category, rule,
  session type, VPN policy, user, uuid, action, appName, device time)
  so they are no longer truncated at the first space
- Rename cryptic vendor tokens (m, n, sn, sess, usr, gcat, pri, dpi,
  ipscat, cs6, ...) to self-explanatory names like log.eventCode,
  log.deviceSerial, log.sessionType, log.groupCategory
- Keep both syslog KV and syslog CEF supported

Rules changes (rules/sonicwall/sonicwall_firewall/):
- Refresh 7 rules to use the new field names
- Remove 3 rules that did not belong to this integration or fired on
  benign traffic (Capture Client, Encrypted Threats, Zero-Day)

Validated against live traffic on env 10.11.11.129.
@JocLRojas
JocLRojas requested a review from a team August 7, 2026 12:46
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

❌ Go dependencies check failed

There are outdated Go dependencies, or modules that could not be inspected.
Run bash .github/scripts/go-deps.sh --update --discover locally and
commit the updated go.mod / go.sum files.

Script output
🔍 Discovered 26 Go projects

📦 Dependencies with updates available:

  📁 ./agent-manager:
     - google.golang.org/grpc: v1.82.1 → v1.83.0
     - gorm.io/driver/postgres: v1.6.0 → v1.6.2

  📁 ./plugins/bitdefender:
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./plugins/o365:
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./plugins/sophos:
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./plugins/crowdstrike:
     - github.com/crowdstrike/gofalcon: v0.21.1 → v0.22.0
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./plugins/gcp:
     - google.golang.org/api: v0.290.0 → v0.292.0
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./plugins/inputs:
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./plugins/azure:
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./plugins/aws:
     - github.com/aws/aws-sdk-go-v2: v1.43.0 → v1.43.4
     - github.com/aws/aws-sdk-go-v2/config: v1.32.31 → v1.32.35
     - github.com/aws/aws-sdk-go-v2/credentials: v1.19.30 → v1.19.34
     - github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs: v1.80.0 → v1.82.0
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./plugins/modules-config:
     - github.com/aws/aws-sdk-go-v2/config: v1.32.31 → v1.32.35
     - github.com/aws/aws-sdk-go-v2/credentials: v1.19.30 → v1.19.34
     - github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs: v1.80.0 → v1.82.0
     - github.com/aws/aws-sdk-go-v2/service/sts: v1.45.0 → v1.45.4
     - github.com/crowdstrike/gofalcon: v0.21.1 → v0.22.0
     - google.golang.org/api: v0.290.0 → v0.292.0
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./installer:
     - github.com/cloudfoundry/gosigar: v1.3.125 → v1.3.126

  📁 ./as400:
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./agent:
     - google.golang.org/grpc: v1.82.1 → v1.83.0

  📁 ./utmstack-collector:
     - google.golang.org/grpc: v1.82.1 → v1.83.0

�[0;31m❌ Please update dependencies before merging.�[0m

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

✅ AI review — Approved

No issues detected in this diff.

architecture (gemini-3-flash-lite) — clean

Summary: No reviewable changes in this diff (excluded paths only).

No findings.

bugs (gemini-3-flash-lite) — clean

Summary: No reviewable changes in this diff (excluded paths only).

No findings.

security (gemini-3-flash-lite) — clean

Summary: No reviewable changes in this diff (excluded paths only).

No findings.

@utmstackprapprover utmstackprapprover Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested — Go dependencies check failed (see above).

@Kbayero
Kbayero merged commit bfc2c48 into v11 Aug 10, 2026
5 of 7 checks passed
@Kbayero
Kbayero deleted the backlog/sonicwall-filter-and-rules-refresh branch August 10, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants