Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vicenteherrera/9d08cd351556d445b630c733a6d4f9aa to your computer and use it in GitHub Desktop.
Save vicenteherrera/9d08cd351556d445b630c733a6d4f9aa to your computer and use it in GitHub Desktop.
- rule: Outbound or Inbound Traffic not to Authorized Server Process and Port
desc: Detect traffic that is not to authorized server process and port.
condition: >
allowed_port and
inbound_outbound and
container and
container.image.repository in (allowed_image) and
not proc.name in (authorized_server_binary) and
not fd.sport in (authorized_server_port)
output: >
Network connection outside authorized port and binary
(command=%proc.cmdline connection=%fd.name user=%user.name container_id=%container.id image=%container.image.repository)
priority: WARNING
tags: [network, PCI, PCI_DSS_2.2.1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment