The Attenuator acts as an intelligent filter that can analyze security events detected by Jibril and provide additional context.
New Feature!
Jibril
Jibril eBPF and Security DiscordGarnet Labs🐈‍⬛
  • Jibril
    • Jibril
      • New Era
      • Theory Behind
      • Architecture
      • Agent Dashboard
      • Compare
    • Install and Run
      • Requirements
      • Systemd Service
      • Command Line
      • Docker Container
      • Kubernetes
        • Kubernetes Script
      • Configuration File
      • Network Policy File
      • Systemd Config
    • Components
      • Features
      • Extensions
      • Plugins
      • Printers
      • Events
      • Network Policy
      • Attenuator
    • Mechanisms
      • File Access
      • Execution
      • File Access And Execution
      • Network Peers
      • Network eBPF Logic
      • Probes and Traces
      • Bigger eBPF Logic
      • Loader Interception
    • Detections
      • File Access
        • Auth Logs Tamper
        • Binary Self Deletion
        • Capabilities Modification
        • Code Modification Through Procfs
        • Core Pattern Access
        • CPU Fingerprint
        • Credentials Files Access
        • Crypto Miner Files
        • Environment Read From ProcFS
        • File Example
        • Filesystem Fingerprint
        • Global Shlib Modification
        • Java Debug Lib Load
        • Java Instrument Lib Load
        • Machine Fingerprint
        • OS Fingerprint
        • OS Network Fingerprint
        • OS Status Fingerprint
        • Package Repo Config Modification
        • PAM Config Modification
        • Sched Debug Access
        • Shell Config Modification
        • SSL Certificate Access
        • Sudoers Modification
        • Sysrq Access
        • Unprivileged Bpf Config Access
      • Execution
        • Binary Executed By Loader
        • Code On The Fly
        • Crypto Miner Execution
        • Data Encoder Exec
        • Denial Of Service Tools
        • Exec Example
        • Exec From Unusual Dir
        • File Attribute Change
        • Hidden Elf Exec
        • Interpreter Shell Spawn
        • Net Filecopy Tool Exec
        • Net MitM Tool Exec
        • Net Scan Tool Exec
        • Net Sniff Tool Exec
        • Net Suspicious Tool Exec
        • Net Suspicious Tool Shell
        • Passwd Usage
        • Runc Suspicious Exec
        • Webserver Exec
        • Webserver Shell Exec
      • Network Peers
        • Adult Domain Access
        • Badware Domain Access
        • Dynamic DNS Domain Access
        • Fake Domain Access
        • Gambling Domain Access
        • Peer Example
        • Piracy Domain Access
        • Plaintext Communication
        • Threat Domain Access
        • Tracking Domain Access
        • VPN Domain Access
    • Bugs and Requests
    • Banner
    • License
  • MITRE
    • Techniques
      • Reconnaissance
        • Active Scanning
          • Scanning IP Blocks
          • Vulnerability Scanning
          • Wordlist Scanning
        • Gather Victim Host Information
          • Hardware
          • Software
          • Firmware
          • Client Configurations
        • Gather Victim Identity Information
          • Credentials
          • Email Addresses
          • Employee Names
        • Gather Victim Network Information
          • Domain Properties
          • DNS
          • Network Trust Dependencies
          • Network Topology
          • IP Addresses
          • Network Security Appliances
        • Gather Victim Org Information
          • Determine Physical Locations
          • Business Relationships
          • Identify Business Tempo
          • Identify Roles
        • Phishing for Information
          • Spearphishing Service
          • Spearphishing Attachment
          • Spearphishing Link
          • Spearphishing Voice
        • Search Closed Sources
          • Threat Intel Vendors
          • Purchase Technical Data
        • Search Open Technical Databases
          • DNS/Passive DNS
          • WHOIS
          • Digital Certificates
          • CDNs
          • Scan Databases
        • Search Open Websites/Domains
          • Social Media
          • Search Engines
          • Code Repositories
        • Search Victim-Owned Websites
      • Resource Development
        • Acquire Access
        • Acquire Infrastructure
          • Domains
          • DNS Server
          • Virtual Private Server
          • Server
          • Botnet
          • Web Services
          • Serverless
          • Malvertising
        • Compromise Accounts
          • Social Media Accounts
          • Email Accounts
          • Cloud Accounts
        • Compromise Infrastructure
          • Domains
          • DNS Server
          • Virtual Private Server
          • Server
          • Botnet
          • Web Services
          • Serverless
          • Network Devices
        • Develop Capabilities
          • Malware
          • Code Signing Certificates
          • Digital Certificates
          • Exploits
        • Establish Accounts
          • Social Media Accounts
          • Email Accounts
          • Cloud Accounts
        • Obtain Capabilities
          • Malware
          • Tool
          • Code Signing Certificates
          • Digital Certificates
          • Exploits
          • Vulnerabilities
          • Artificial Intelligence
        • Stage Capabilities
          • Upload Malware
          • Upload Tool
          • Install Digital Certificate
          • Drive-by Target
          • Link Target
          • SEO Poisoning
      • Initial Access
        • Drive-by Compromise
        • Exploit Public-Facing Application
        • External Remote Services
        • Hardware Additions
        • Phishing
          • Spearphishing Attachment
          • Spearphishing Link
          • Spearphishing via Service
          • Spearphishing Voice
        • Replication Through Removable Media
        • Supply Chain Compromise
          • Compromise Software Dependencies and Development Tools
          • Compromise Software Supply Chain
          • Compromise Hardware Supply Chain
        • Trusted Relationship
        • Valid Accounts
          • Default Accounts
          • Domain Accounts
          • Local Accounts
          • Cloud Accounts
      • Execution
        • Cloud Administration Command
        • Command and Scripting Interpreter
          • PowerShell
          • AppleScript
          • Windows Command Shell
          • Unix Shell
          • Visual Basic
          • Python
          • JavaScript
          • Network Device CLI
          • Cloud API
          • AutoHotkey & AutoIt
          • Lua
        • Container Administration Command
          • Deploy Container
        • Exploitation for Client Execution
        • Inter-Process Communication
          • Component Object Model
          • Dynamic Data Exchange
          • XPC Services
        • Native API
        • Scheduled Task/Job
          • At
          • Cron
          • Scheduled Task
          • Systemd Timers
          • Container Orchestration Job
        • Serverless Execution
        • Shared Modules
        • Software Deployment Tools
        • System Services
          • Launchctl
          • Service Execution
        • User Execution
          • Malicious Link
          • Malicious File
          • Malicious Image
        • Windows Management Instrumentation
      • Persistence
        • Account Manipulation
          • Additional Cloud Credentials
          • Additional Email Delegate Permissions
          • Additional Cloud Roles
          • SSH Authorized Keys
          • Device Registration
          • Additional Container Cluster Roles
          • Additional Local or Domain Groups
        • BITS Jobs
        • Boot or Logon Autostart Execution
          • Registry Run Keys / Startup Folder
          • Authentication Package
          • Time Providers
          • Winlogon Helper DLL
          • Security Support Provider
          • Kernel Modules and Extensions
          • Re-opened Applications
          • LSASS Driver
          • Shortcut Modification
          • Port Monitors
          • Print Processors
          • XDG Autostart Entries
          • Active Setup
          • Login Items
        • Boot or Logon Initialization Scripts
          • Logon Script (Windows)
          • Login Hook
          • Network Logon Script
          • RC Scripts
          • Startup Items
        • Browser Extensions
        • Compromise Host Software Binary
        • Create Account
          • Local Account
          • Domain Account
          • Cloud Account
        • Create or Modify System Process
          • Launch Agent
          • Systemd Service
          • Windows Service
          • Launch Daemon
          • Container Service
        • Event Triggered Execution
          • Change Default File Association
          • Screensaver
          • Windows Management Instrumentation Event Subscription
          • Unix Shell Configuration Modification
          • Trap
          • LC_LOAD_DYLIB Addition
          • Netsh Helper DLL
          • Accessibility Features
          • AppCert DLLs
          • AppInit DLLs
          • Application Shimming
          • Image File Execution Options Injection
          • PowerShell Profile
          • Emond
          • Component Object Model Hijacking
          • Installer Packages
          • Udev Rules
        • External Remote Services
        • Hijack Execution Flow
          • DLL Search Order Hijacking
          • DLL Side-Loading
          • Dylib Hijacking
          • Executable Installer File Permissions Weakness
          • Dynamic Linker Hijacking
          • Path Interception by PATH Environment Variable
          • Path Interception by Search Order Hijacking
          • Path Interception by Unquoted Path
          • Services File Permissions Weakness
          • Services Registry Permissions Weakness
          • COR_PROFILER
          • KernelCallbackTable
          • AppDomainManager
        • Implant Internal Image
        • Modify Authentication Process
          • Domain Controller Authentication
          • Password Filter DLL
          • Pluggable Authentication Modules
          • Network Device Authentication
          • Reverse Encryption
          • Multi-Factor Authentication
          • Hybrid Identity
          • Network Provider DLL
          • Conditional Access Policies
        • Office Application Startup
          • Office Template Macros
          • Office Test
          • Outlook Forms
          • Outlook Home Page
          • Outlook Rules
          • Add-ins
        • Pre-OS Boot
          • System Firmware
          • Component Firmware
          • Bootkit
          • ROMMONkit
          • TFTP Boot
        • Scheduled Task/Job
        • Server Software Component
          • SQL Stored Procedures
          • Transport Agent
          • Web Shell
          • IIS Components
          • Terminal Services DLL
        • Traffic Signaling
          • Port Knocking
          • Socket Filters
        • Valid Accounts
      • Privilege Escalation
        • Abuse Elevation Control Mechanism
          • Setuid and Setgid
          • Bypass User Account Control
          • Sudo and Sudo Caching
          • Elevated Execution with Prompt
          • Temporary Elevated Cloud Access
          • TCC Manipulation
        • Access Token Manipulation
          • Token Impersonation/Theft
          • Create Process with Token
          • Make and Impersonate Token
          • Parent PID Spoofing
          • SID-History Injection
        • Account Manipulation
        • Boot or Logon Autostart Execution
        • Boot or Logon Initialization Scripts
        • Create or Modify System Process
        • Domain or Group Policy Modification
          • Group Policy Modification
          • Trust Modification
        • Escape to Host
        • Event Triggered Execution
        • Exploitation for Privilege Escalation
        • Hijack Execution Flow
        • Process Injection
          • Dynamic-link Library Injection
          • Portable Executable Injection
          • Thread Execution Hijacking
          • Asynchronous Procedure Call
          • Thread Local Storage
          • Ptrace System Calls
          • Proc Memory
          • Extra Window Memory Injection
          • Process Hollowing
          • Process Doppelgänging
          • VDSO Hijacking
          • ListPlanting
        • Scheduled Task/Job
        • Valid Accounts
      • Defense Evasion
        • Abuse Elevation Control Mechanism
        • Access Token Manipulation
        • BITS Jobs
        • Build Image on Host
        • Deobfuscate/Decode Files or Information
        • Direct Volume Access
        • Domain Policy Modification
        • Execution Guardrails
          • Environmental Keying
          • Geofencing
          • Time Based Evasion
        • Exploitation for Defense Evasion
        • File and Directory Permissions Modification
          • Windows File and Directory Permissions Modification
          • Linux and Mac File and Directory Permissions Modification
        • Hide Artifacts
          • Hidden Files and Directories
          • Hidden Users
          • Hidden Window
          • NTFS File Attributes
          • Hidden File System
        • Hijack Execution Flow
        • Impair Defenses
          • Disable or Modify Tools
          • Disable Windows Event Logging
          • Disable or Modify System Firewall
          • Disable or Modify Cloud Logs
        • Indicator Removal
          • Clear Windows Event Logs
          • Clear Command History
          • Clear Network Connection History and Logs
          • File Deletion
          • Timestomp
        • Indirect Command Execution
        • Masquerading
          • Match Legitimate Name or Location
          • Rename System Utilities
          • Masquerade Task or Service
          • Double File Extension
          • Right-to-Left Override
          • Space after Filename
          • Compiled HTML File
        • Modify Authentication Process
        • Modify Cloud Environment
          • Add Resources or Services
          • Modify Permissions
        • Modify Registry
        • Modify System Image
          • Patch System Image
          • Downgrade System Image
        • Network Boundary Bridging
          • Network Address Translation Traversal
        • Obfuscated Files or Information
          • Software Packing
          • Steganography
          • Compile After Delivery
          • Binary Padding
          • HTML Smuggling
        • Pre-OS Boot
        • Process Injection
        • Reflective Code Loading
        • Rogue Domain Controller
        • Rootkit
        • Subvert Trust Controls
          • Mark-of-the-Web Bypass
          • SIP and Trust Provider Hijacking
          • Code Signing
          • Install Root Certificate
          • Gatekeeper Bypass
        • System Binary Proxy Execution
          • Compiled HTML File
          • Control Panel
          • CMSTP
          • InstallUtil
          • Mshta
          • Msiexec
          • Odbcconf
          • Regsvcs/Regasm
          • Regsvr32
          • Rundll32
          • Verclsid
          • Mavinject
          • MMC
        • System Script Proxy Execution
          • PubPrn
        • Template Injection
        • Traffic Signaling
        • Use Alternate Authentication Material
          • Application Access Token
          • Pass the Hash
          • Pass the Ticket
          • Web Session Cookie
        • Valid Accounts
        • Virtualization/Sandbox Evasion
          • System Checks
          • User Activity Based Checks
          • Time Based Evasion
        • Weaken Encryption
          • Reduce Key Space
          • Disable or Remove Encryption
        • XSL Script Processing
        • Credential Access
          • Adversary-in-the-Middle
            • LLMNR/NBT-NS Poisoning and SMB Relay
            • ARP Cache Poisoning
            • DHCP Spoofing
            • Evil Twin
          • Brute Force
            • Password Guessing
            • Password Cracking
            • Password Spraying
            • Credential Stuffing
          • Credentials from Password Stores
            • Credentials from Web Browsers
            • Windows Credential Manager
            • Credentials from Password Managers
          • Exploitation for Credential Access
          • Forced Authentication
          • Forge Web Credentials
            • Web Cookies
            • SAML Tokens
          • Input Capture
            • Keylogging
            • GUI Input Capture
            • Web Portal Capture
          • Modify Authentication Process
          • Multi-Factor Authentication Interception
          • Multi-Factor Authentication Request Generation
          • Network Sniffing
          • OS Credential Dumping
            • LSASS Memory
            • Security Account Manager
            • NTDS
            • LSA Secrets
            • Cached Domain Credentials
            • DCSync
            • Proc Filesystem
          • Steal Application Access Token
          • Steal or Forge Authentication Certificates
          • Steal or Forge Kerberos Tickets
            • Golden Ticket
            • Silver Ticket
            • Kerberoasting
          • Steal Web Session Cookie
          • Unsecured Credentials
            • Credentials in Files
            • Credentials in Registry
            • Bash History
            • Credentials in Configuration Files
        • Discovery
          • Account Discovery
            • Local Account
            • Domain Account
            • Cloud Account
          • Application Window Discovery
          • Browser Bookmark Discovery
          • Cloud Infrastructure Discovery
            • Cloud Storage Object Discovery
          • Cloud Service Dashboard
          • Cloud Service Discovery
          • Container and Resource Discovery
          • Domain Trust Discovery
          • File and Directory Discovery
          • Group Policy Discovery
          • Network Service Discovery
          • Network Share Discovery
          • Network Sniffing
          • Password Policy Discovery
          • Peripheral Device Discovery
          • Permission Groups Discovery
            • Local Groups
            • Domain Groups
            • Cloud Groups
          • Process Discovery
          • Query Registry
          • Remote System Discovery
          • Software Discovery
            • Security Software Discovery
            • Installed Services Discovery
          • System Information Discovery
          • System Location Discovery
            • System Language Discovery
          • System Network Configuration Discovery
            • Internet Connection Discovery
            • Domain Generation Algorithm Discovery
          • System Network Connections Discovery
          • System Owner/User Discovery
          • System Service Discovery
          • System Time Discovery
          • Virtualization/Sandbox Evasion
          • Wireless Network Discovery
        • Lateral Movement
          • Exploitation of Remote Services
          • Internal Spearphishing
          • Lateral Tool Transfer
          • Remote Service Session Hijacking
            • RDP Hijacking
          • Remote Services
            • Remote Desktop Protocol
            • Windows Admin Shares
            • Distributed Component Object Model
            • SSH
            • VNC
            • Apple Remote Desktop
            • Cloud Services
          • Replication Through Removable Media
          • Software Deployment Tools
          • Taint Shared Content
          • Use Alternate Authentication Material
        • Collection
          • Adversary-in-the-Middle
          • Archive Collected Data
            • Archive via Utility
            • Archive via Library
            • Archive via Custom Method
          • Audio Capture
          • Automated Collection
          • Browser Session Hijacking
          • Clipboard Data
          • Data from Cloud Storage
            • Cloud Storage Object
          • Data from Configuration Repository
            • SNMP MIB Dump
            • Network Device Configuration Dump
          • Data from Information Repositories
            • SharePoint
            • Code Repositories
            • Customer Relationship Management Software
            • Messaging Applications
          • Data from Local System
          • Data from Network Shared Drive
          • Data from Removable Media
          • Data Staged
            • Local Data Staging
            • Remote Data Staging
          • Email Collection
            • Local Email Collection
            • Remote Email Collection
            • Email Forwarding Rule
          • Input Capture
          • Screen Capture
          • Video Capture
        • Command and Control
          • Application Layer Protocol
            • Web Protocols
            • File Transfer Protocols
            • Mail Protocols
            • DNS
          • Communication Through Removable Media
          • Data Encoding
            • Standard Encoding
            • Non-Standard Encoding
          • Data Obfuscation
            • Junk Data
            • Steganography
            • Protocol Impersonation
          • Dynamic Resolution
            • Fast Flux DNS
            • Domain Generation Algorithms
            • DNS Calculation
          • Encrypted Channel
            • Symmetric Cryptography
            • Asymmetric Cryptography
          • Fallback Channels
          • Ingress Tool Transfer
          • Multi-Stage Channels
          • Non-Application Layer Protocol
          • Non-Standard Port
          • Protocol Tunneling
          • Proxy
            • Internal Proxy
            • External Proxy
            • Multi-hop Proxy
            • Domain Fronting
          • Remote Access Software
          • Traffic Signaling
          • Web Service
            • Dead Drop Resolver
            • Bidirectional Communication
            • One-Way Communication
        • Exfiltration
          • Automated Exfiltration
            • Traffic Duplication
          • Data Transfer Size Limits
          • Exfiltration Over Alternative Protocol
            • Exfiltration Over Symmetric Encrypted Non-C2 Protocol
            • Exfiltration Over Asymmetric Encrypted Non-C2 Protocol
            • Exfiltration Over Unencrypted Non-C2 Protocol
          • Exfiltration Over C2 Channel
          • Exfiltration Over Other Network Medium
            • Exfiltration Over Bluetooth
          • Exfiltration Over Physical Medium
            • Exfiltration over USB
          • Exfiltration Over Web Service
            • Exfiltration to Cloud Storage
            • Exfiltration to Code Repository
            • Exfiltration to Text Storage Sites
            • Exfiltration Over Webhook
          • Scheduled Transfer
        • Impact
          • Account Access Removal
          • Data Destruction
            • Lifecycle/Trigger Deletion
          • Data Encrypted for Impact
          • Data Manipulation
            • Stored Data Manipulation
            • Transmitted Data Manipulation
            • Runtime Data Manipulation
          • Defacement
            • Internal Defacement
            • External Defacement
          • Disk Wipe
            • Disk Structure Wipe
            • Disk Content Wipe
          • Endpoint Denial of Service
            • OS Exhaustion Flood
            • Service Exhaustion Flood
            • Application Exhaustion Flood
            • Application or System Exploitation
          • Firmware Corruption
          • Inhibit System Recovery
          • Network Denial of Service
            • Direct Network Flood
            • Reflection Amplification
          • Resource Hijacking
            • SMS Pumping
          • Service Stop
          • System Shutdown/Reboot
  • Knowledge
    • eBPF
      • eBPF Helpers
        • map_xxx_elem (v3.19)
        • get_prandom_u32 (v4.1)
        • get_smp_processor_id (v4.1)
  • Research
    • Runtime Security
      • Valkyrie Response
Powered by GitBook

© 2025 • Jibril • by Garnet Labs

On this page
  • Definition
  • Configuration Example
  • Configuration Overview
  • Modes and Policies
  • CIDR Modes
  • CIDR Policy
  • Resolve Modes
  • Resolve Policy
  • Rule Details
  • CIDR Rules
  • Domain Rules
  • Key Features
  1. Jibril
  2. Components

Network Policy

Last updated 19 days ago

Definition

The Network Policy Plugin allows users to define and enforce traffic policies based on CIDRs (IP ranges) and domain resolutions. It supports advanced configurations for alerting, enforcing, and bypassing traffic rules, ensuring flexible network control.

Jibril execution:

sudo -E jibril --log-level info --extension config --extension data --extension jibril --plugin jibril:hold --printer jibril:printers:stdout

Enable the Network Policy Plugin:

--plugin jibril:netpolicy:file=/path/to/policy.yaml

Enable the alert events:

... --event jibril:netpolicy:dropip --event jibril:netpolicy:dropdomain

in case alert or both modes are enabled.

Configuration Example

#
# Alert and deny all traffic by default, allowing only declared domains to be resolved.
#
network_policy:
  #
  # The CIDR mode and policy define the IP address policy. Users can choose to block,
  # alert, enforce, or bypass traffic based on CIDR rules.
  #
  # * "cidr_mode":
  #
  # - "bypass": Allow all traffic.
  # - "alert": Alert on denied traffic to CIDRs or domains.
  # - "enforce": Block denied traffic to CIDRs or domains.
  # - "both": Alert and block denied traffic to CIDRs or domains.
  #
  # * "cidr_policy":
  #
  # - "allow": Allow traffic to CIDRs or domains by default.
  # - "deny": Block traffic to CIDRs or domains by default.
  #
  # As an example, the user might have a default "cidr_policy" set to "deny" and allow all
  # IPs with "cidr" set to "0.0.0.0/0". Then, the user might block an IP with a higher
  # prefix length, such as "9.9.9.9/32".
  #
  cidr_mode: "both"
  cidr_policy: "allow"
  #
  # The RESOLVE mode and policy define the domain resolution policy. Users can block
  # specific domains from being resolved or allow them with alerts.
  #
  # For example, if "resolve_mode" is set to "bypass" but a domain is declared as denied,
  # the resolution will be allowed, but the resolved IPs will be blocked.
  #
  # When "resolve_mode" is enabled (alert, enforce, or both), "resolve_policy" determines
  # whether the resolution should be allowed or denied by default.
  #
  # 1. To be alerted on denied domain resolutions, set "resolve_mode" to "alert" and
  #    "resolve_policy" to "deny". You may still block IPs resolved from specific domains.
  #
  # 2. To block the resolution of denied domains, set "resolve_mode" to "enforce"
  #    and "resolve_policy" to "deny". Be aware that if "mode" is set to "bypass", the
  #    resolution will be disallwed, but direct IP connections to the domain will
  #    still be allowed.
  #
  # * "resolve_mode":
  #
  # - "bypass": Allow all domains to be resolved.
  # - "alert": Alert on denied domain resolutions.
  # - "enforce": Block the resolution of denied domains.
  # - "both": Alert and block the resolution of denied domains.
  #
  # * "resolve_policy":
  #
  # - "allow": Allow domain resolution by default.
  # - "deny": Block domain resolution by default.
  #
  # NOTE: domain rules exist independently of "resolve_mode". If a domain is declared
  #       as "deny", its resolved IPs won't be reachable, regardless of "resolve_mode",
  #       which only controls the resolution process.
  #
  resolve_mode: "bypass"
  resolve_policy: "allow"
  #
  rules:
    # Whitelist Everything (test only).
    # - cidr: "0.0.0.0/0"
    #   policy: "allow"
    # Whitelisted CIDRs (localhost).
    - cidr: "127.0.0.0/8"
      policy: "allow"
    - cidr: "::1/128"
      policy: "allow"
    # Whitelisted CIDRs (internal networks).
    - cidr: "192.168.0.0/16"
      policy: "allow"
    - cidr: "172.16.0.0/16"
      policy: "allow"
    - cidr: "10.0.0.0/8"
      policy: "allow"
    - cidr: "10.0.0.1/32"
      policy: "allow"
    # Whitelisted CIDRs (nameservers).
    - cidr: "8.8.8.8/32"
      policy: "allow"
    - cidr: "8.8.4.4/32"
      policy: "allow"
    - cidr: "1.1.1.1/32"
      policy: "allow"
    - cidr: "9.9.9.9/32"
      policy: "allow"
    # Whitelisted Domains.
    - domain: "org"
      policy: "allow"
    - domain: "google.com"
      policy: "allow"
    # Blacklisted Domains.
    - domain: "example.com"
      policy: "deny"
    - domain: "uol.com.br"
      policy: "deny"

Configuration Overview

Field
Description

cidr_mode

Defines the mode for handling traffic based on CIDRs. Possible values: bypass, alert, enforce, both.

cidr_policy

Determines the default policy for CIDRs. Possible values: allow, deny.

resolve_mode

Defines the mode for handling domain resolutions. Possible values: bypass, alert, enforce, both.

resolve_policy

Determines the default policy for domain resolutions. Possible values: allow, deny.

rules

List of custom rules for specific CIDRs or domains.


Modes and Policies

CIDR Modes

Mode
Description

bypass

Allow all traffic to and from the specified CIDRs.

alert

Alert when traffic violates CIDR rules but does not block it.

enforce

Block traffic that violates CIDR rules.

both

Both alert and block traffic that violates CIDR rules.

CIDR Policy

Policy
Description

allow

Allow traffic to CIDRs by default.

deny

Block traffic to CIDRs by default.

Resolve Modes

Mode
Description

bypass

Allow all domain resolutions.

alert

Alert when domain resolution violates rules but does not block it.

enforce

Block domain resolutions that violate rules.

both

Both alert and block domain resolutions that violate rules.

Resolve Policy

Policy
Description

allow

Allow domain resolutions by default.

deny

Block domain resolutions by default.

Rule Details

CIDR Rules

CIDR
Policy
Description

127.0.0.0/8

allow

Allow all traffic to localhost.

::1/128

allow

Allow IPv6 localhost traffic.

192.168.0.0/16

allow

Allow traffic within the internal network.

172.16.0.0/16

allow

Allow traffic within the internal network.

10.0.0.0/8

allow

Allow traffic within the internal network.

8.8.8.8/32

allow

Allow traffic to Google Public DNS.

8.8.4.4/32

allow

Allow traffic to Google Public DNS.

1.1.1.1/32

allow

Allow traffic to Cloudflare DNS.

9.9.9.9/32

allow

Allow traffic to Quad9 DNS.

Domain Rules

Domain
Policy
Description

org

allow

Allow resolution of all .org domains.

google.com

allow

Allow resolution of google.com.

example.com

deny

Block resolution of example.com.

uol.com.br

deny

Block resolution of uol.com.br.

Key Features

  • Alert and Enforce Modes Flexibly alert or block traffic and domain resolutions based on custom rules.

  • Granular Rule Definition Define specific CIDRs or domains to allow or deny traffic.

  • Default Policy Configuration Set default allow or deny policies for both CIDRs and domains.

  • Independent Rules Domain resolution rules operate independently of CIDR traffic rules for fine-grained control.

  • Testing Support Easily configure test rules, such as whitelisting all traffic, for development and debugging purposes.

Ensure that CIDR and domain rules are carefully planned to avoid unintended blockings.