Dosu LogoDosu Logo
Ask
Join our Discord
Organization avatar
opnDossierPublic
EvilBit Labs LLC
Documents
Architecture
about
architecture
model-reference
opnDossier Architecture Overview
security-assurance
CLI Commands
basic-documentation
configuration
configuration-reference
Compliance Standards Integration
audit-compliance
Configuration Validation
model-reference
General Overview
about
opnDossier Architecture Overview
README
Installation and Build Process
releasing
RELEASING
Markdown Report Generation
model-reference
Pipeline v2 Compliance
releasing
RELEASING
security-assurance
Project Contributors
architecture
model-reference
Security Scoring
security-scoring
Testing and Quality Assurance
releasing
RELEASING
User Guide
about
audit-compliance
basic-documentation
configuration
configuration-reference
installation
README
security-scoring
0001-opnsense-pfsense-snmp-config-storage-model
CONTRIBUTING
GOTCHAS
README
SECURITY
STRATEGY
SUPPORT
advanced-configuration
api
audit
authoritative_role_definitions
automation-scripting
ci-runs-on-pull-request-not-feature-branch-push
cli-flag-wiring-silent-ignore
cli-output-policy
cli-prerun-validation-timing-dynamic-plugins
compliance-standards
config
contributing
convert
copilot-instructions
device-support-matrix
diff
display
documentation-code-drift-interface-refactoring
file-split-refactor-gotchas
firewall-security-controls-reference
for-agents
format-dispatch-centralization-registry-pattern
getting-started
index
index
index
json-export
liberal-boolean-xml-parsing-opnsense-pfsense
model-reference
opnsense-nat-ipprotocol-enum-cast-missing-guard
overview
overview
pipeline-v2-compliance
pipelines
pkg-internal-import-boundary
pluggable-deviceparser-registry-pattern
plugin-development
plugin-panic-recovery-audit-runchecks
plugin-system
pr-and-commit-message-content-standard-2026-05-04
public-api
sanitize
standards
template
theme-usage
troubleshooting
validate
validation
vulnerability-scanning
workflows
xml-field-reference
xml-structure-research
yaml-processing
DocumentsopnDossier
security-scoring
security-scoring
Type
External
Status
Published
Created
Feb 27, 2026
Updated
Nov 23, 2026
Updated by
Dosu Bot
Source
docs/user-guide/security-scoring.md

Security Scoring Methodology#

Overview#

opnDossier's security assessment provides a standardized approach to evaluating OPNsense configuration security posture. The scoring system starts at 100 and deducts points for known misconfigurations, exposed management interfaces, and missing hardening measures. The result is a single number that gives you a quick read on how well a configuration follows security best practices.

This score is not a vulnerability scan -- it evaluates the configuration itself, not what is running on the network. A score of 100 means the configuration follows all the hardening checks opnDossier knows about, not that the network is invulnerable.

All scoring operates completely offline with no external dependencies, suitable for airgapped environments.

Risk Label Mapping#

The security assessment uses consistent risk labels across all output formats:

SeverityLabelDescription
criticalCritical RiskImmediate attention required
highHigh RiskHigh priority security concern
mediumMedium RiskModerate security concern
lowLow RiskLow priority security issue
info / informationalInformationalInformational finding
Unknown/InvalidUnknown RiskUnrecognized severity level

Service Risk Assessment#

When opnDossier encounters services exposed through firewall rules or NAT port forwarding, it categorizes them by the inherent risk of the protocol. This helps you spot rules that expose dangerous services -- even if the rule itself looks normal.

Critical Risk#

  • Telnet -- Transmits credentials and session data in cleartext. There is no legitimate reason to expose Telnet on a modern network. If you see this in a config, it is almost certainly a legacy oversight or a misconfiguration.

High Risk#

  • FTP -- Transmits credentials in cleartext and uses unpredictable data ports that complicate firewall rules. Use SFTP or SCP instead.
  • VNC -- Many VNC implementations have weak or no authentication by default. If remote desktop access is needed, tunnel it through a VPN or use a more secure alternative.

Medium Risk#

  • RDP -- Supports encryption and network-level authentication, but is a frequent target for brute-force attacks and has had critical vulnerabilities (e.g., BlueKeep). Should never be exposed directly to the internet -- always place behind a VPN or jump host.

Low Risk#

  • SSH -- Encrypted and well-understood, but still an attack surface. Key-based authentication and rate limiting are recommended when exposed.

Informational#

  • HTTPS -- Encrypted web services. Generally expected to be exposed.
  • Unknown/Custom -- Services not in the risk database are noted but not penalized.

Security Scoring Algorithm#

The security score provides a 0-100 rating based on configuration analysis. Every configuration starts at 100 points, and points are deducted for each issue found.

Penalty System#

Security IssuePenaltyWhy it matters
No Firewall Rules-20A firewall with no rules is either passing all traffic or blocking all traffic -- neither is a deliberate security posture. This usually indicates a misconfiguration or an incomplete backup.
Management on WAN-30Exposing management interfaces (SSH, HTTP, HTTPS) to the internet is the single most common way firewalls get compromised. Attackers scan for these ports continuously. Even with strong credentials, the attack surface is unnecessary. A pass rule counts on any WAN interface, including a second uplink, an interface group with a WAN member, or a floating rule on every interface (see How WAN Interfaces Are Identified).
Insecure Sysctl Settings-5 eachKernel tunables control low-level network behavior. Misconfigured tunables can allow IP spoofing, enable packet forwarding when it should be disabled, or make the firewall respond to port scans.
Default User Accounts-15 eachDefault accounts (admin, root, user) with unchanged names are predictable targets for brute-force attacks. Renaming or removing default accounts is a basic hardening step.

With packet filtering disabled the firewall loads no rule and every service is reachable from the WAN, so the No Firewall Rules and Management on WAN penalties apply in full, counted once: the score before the sysctl and user penalties is at most 50.

Interpreting the Score#

Score RangeGeneral Assessment
90-100Well-hardened configuration with no major issues
70-89Acceptable with some areas for improvement
50-69Multiple security concerns that should be addressed
Below 50Significant hardening needed -- review findings carefully

The score in the convert and audit exports, statistics.summary.securityScore and securityAssessment.overallScore, is computed differently. It starts at 0 and adds points: 10 for each detected security feature (Block Private Networks, Block Bogon Networks, HTTPS Web GUI, NAT Reflection Disabled), 20 when any firewall rule exists, 15 for an HTTPS web GUI, 10 when an SSH group is set, 15 when IDS is enabled and 10 more in IPS mode, capped at 100. Block Private Networks and Block Bogon Networks count only when every WAN interface blocks them, including a second uplink (see How WAN Interfaces Are Identified).

Sysctl Security Checks#

The following kernel tunables are evaluated. These are set under System > Settings > Tunables in OPNsense.

TunableExpectedWhy
net.inet.ip.forwarding0When enabled, the firewall forwards packets between interfaces at the kernel level, bypassing firewall rules. Should only be 1 if the device is explicitly configured as a router -- and on OPNsense, the firewall's own routing handles this, so the sysctl should typically be 0.
net.inet6.ip6.forwarding0Same as above, but for IPv6. If you are not using IPv6 routing, this should be disabled.
net.inet.tcp.blackhole2When set to 2, the kernel silently drops TCP packets to closed ports instead of responding with a RST. This makes port scanning slower and less reliable, reducing reconnaissance effectiveness.
net.inet.udp.blackhole1When set to 1, the kernel silently drops UDP packets to closed ports instead of responding with an ICMP port unreachable message. Same benefit as the TCP blackhole -- reduces information leakage to scanners.

Management Port Detection#

The following ports are flagged when exposed on the WAN interface with an inbound rule. These are management ports -- they provide administrative access to the firewall itself or to systems behind it, and should not be reachable from the internet.

PortServiceWhy it should not be on WAN
22SSHDirect shell access to the firewall. Use VPN + internal SSH instead.
80HTTPUnencrypted WebGUI access. Credentials are transmitted in cleartext.
443HTTPSEncrypted WebGUI access is better than HTTP, but still exposes the admin interface to brute-force attacks and zero-day vulnerabilities.
8080Alt HTTPCommonly used as an alternative WebGUI or proxy port. Same risks as port 80.

Integration with Reports#

The security score and findings appear differently depending on the audit mode used with the audit command:

Blue Team Reports#

Focused on defensive operations. Findings are grouped by severity with compliance mappings (STIG, SANS, firewall controls) and specific remediation steps. Best for security teams working to harden a configuration.

Red Team Reports#

Focused on what an attacker would target. Highlights exposed management interfaces, weak NAT rules, and potential pivot points. The score is less prominent -- the emphasis is on attack surface discovery.


For how to generate audit reports, see the audit command.