Skip to content

Instantly share code, notes, and snippets.

@luca-m
Created March 8, 2023 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luca-m/7d0a83d1b6e56257fbca5ddf3a9bad4e to your computer and use it in GitHub Desktop.
Save luca-m/7d0a83d1b6e56257fbca5ddf3a9bad4e to your computer and use it in GitHub Desktop.
Sentinel1 hunting queries
// Query for Outbound SMTP, SMTPS, STARTLS and SSH communications
dst.port.number in (587,465,25,2525,22)
| let rfc1918 = not ($dst.ip.address matches "((127\\..*)|(192\\.168\..*)|(10\\..*)|(172\\.1[6-9]\\..*)|(172\\.2[0-9]\\..*)|(172\\.3[0-1]\\..*)).*")
| filter rfc1918 = true
| group hits = count(src.process.name), endpoints = hacklist(endpoint.name) by dst.ip.address, dst.port.number
| sort -endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment