Skip to content
Firewall audit · from the configuration

Juniper SRX firewall audit from the config file

Export the Juniper SRX configuration, upload the config file, and the review runs 44 checks on it, each on the setting it reads. Nothing connects to the firewall.

The 44 checks run on the Juniper SRX export

These are the checks that reached a result on a Juniper SRX export in its own layout in our tests: the same 44 the vendor table counts as checks run. Each row says what part of the export the check reads.

AAA 2

CheckSeverityReads
No centralized AAA server (TACACS+/RADIUS) Mediumsystem
AAA local-only Mediumsystem

ALG 1

CheckSeverityReads
Unused ALGs enabled Lowthe ALG settings

Archival 1

CheckSeverityReads
Configuration archival disabled Mediumsystem

Banner 1

CheckSeverityReads
Login message missing Lowsystem

Firewall 1

CheckSeverityReads
Default session log disabled Mediumsecurity

Host 2

CheckSeverityReads
ICMP redirects not disabled Lowsystem
TCP SYN+FIN packets not dropped Lowsystem

IDP 2

CheckSeverityReads
IDP not enabled on policies Highsecurity
IDP in detection-only mode Mediumthe IDP settings

IKE 4

CheckSeverityReads
IKE aggressive mode enabled Highthe IKE settings
IKE weak Diffie-Hellman group (1/2/5) Highthe IKE settings
IKE/IPsec weak encryption (DES/3DES) Highthe IKE settings
IKE/IPsec weak integrity (MD5/SHA1) Mediumthe IKE settings

IPsec 1

CheckSeverityReads
IPsec without PFS Highsecurity

Logging 3

CheckSeverityReads
No syslog host configured Highsystem
Administrative commands not logged Mediumsystem
Security (traffic) logs not streamed off-box Mediumsecurity

Login 6

CheckSeverityReads
Weak password hash format (md5/sha1) Highthe Login settings
Login class without idle-timeout Mediumsystem
No password minimum-length policy Mediumsystem
No login retry-options (brute-force throttling) Mediumsystem
No authentication-order configured Lowsystem
Login retry-options without lockout-period Lowsystem

NETCONF 1

CheckSeverityReads
NETCONF over SSH not enforced Highsystem

NTP 2

CheckSeverityReads
No NTP server configured Mediumsystem
NTP without authentication Lowsystem

Policies 2

CheckSeverityReads
Default security policy is permit-all Criticalthe Policies settings
Security policy permit any-any Criticalthe Policies settings

Root 1

CheckSeverityReads
Root user has password (not key) auth Highthe Root settings

Screen 1

CheckSeverityReads
No screen (IDS) DoS protection configured Mediumsecurity

Security 1

CheckSeverityReads
Trust zone allows all inbound services Mediumthe Security settings

Services 3

CheckSeverityReads
Telnet management service enabled Criticalthe Services settings
Legacy / plaintext services enabled Highthe Services settings
J-Web served over HTTP (cleartext) Highthe Services settings

SNMP 2

CheckSeverityReads
SNMPv3 not used (v1/v2c only) Highsystem
SNMP v1/v2c configured Highthe SNMP settings

SSH 5

CheckSeverityReads
SSH protocol version 1 permitted Highthe SSH settings
SSH root-login not denied Highsystem
SSH weak cipher allowed Highthe SSH settings
SSH without connection-limit Mediumsystem
SSH without rate-limit Mediumsystem

System 1

CheckSeverityReads
Autoinstallation enabled Mediumthe System settings

UTM 1

CheckSeverityReads
UTM web filtering disabled Mediumsecurity

2 more items are guidance only: an export cannot show them, so they are not counted as checks.

The Juniper SRX export

How long it takes
About 5 minutes once your login can view the configuration; add about 10 minutes when an administrator has to create the login class.
Who can pull it
A Junos login whose class has the view and view-configuration permissions. The command needs view, and view-configuration "Can view all of the configuration excluding secrets, system scripts, and event options", so the file comes without passwords and keys. Try your existing login before you ask for anything: if no line of the output reads ACCESS-DENIED, it is enough. The predefined read-only class has the view permission and not view-configuration. If lines read ACCESS-DENIED, an administrator who can enter configuration mode and whose class has the admin-control permission (the predefined super-user class has the permission flag set "all") creates the class: set system login class cybertwin-read permissions [ view view-configuration ] then set system login user <your-user> class cybertwin-read then commit .
The file
Plain text, one .txt file of Junos set commands (set system …, set security policies …)
Formats read
`show configuration` text · JSON RPC export

The steps, console and command line, are on the Juniper SRX export guide.

What the export does not show

  • Hit counts and last-change data, so unused rules are not found
  • Address-book entries resolved to addresses
  • The members of custom application sets
  • XML and brace-format output: just display set output is read
  • FIPS mode: not checked yet
  • System scripts and event options: a login with view-configuration does not see them, so they are not in the file

Limits of the reader

  • Findings stay in the review. They do not feed attack paths.
  • The checks of this system are not counted: a check counts once a test shows it firing on a file in the layout the vendor documents.

A configuration audit reads settings. Live traffic, hit counts the export does not carry, running hosts and logs are not in the file, so no finding comes from them.

A Juniper SRX finding from the sample

Sample company: Acme Capital (fictional)

Security policy permit any-any

Criticalline 40

Raised by the review on a made-up insecure Juniper SRX file: juniper-srx-insecure.set.txt. The file is public: open it to see what the export looks like.

The grade its findings reach

Proven A finding from this file can reach PROVEN: the stored file is read a second time by a separate reader, and the finding is found at the setting it names.

Juniper SRX findings stay in the review and its reports. Juniper SRX does not feed attack paths today.

Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.

Questions

Does the Juniper SRX audit connect to the firewall?

No. The review reads the config file you export and upload, setting by setting. Nothing is installed on the firewall and nothing connects to it.

How long does the Juniper SRX export take?

About 5 minutes once your login can view the configuration; add about 10 minutes when an administrator has to create the login class.

What does the Juniper SRX export not show?

Hit counts and last-change data, so unused rules are not found. Address-book entries resolved to addresses. The members of custom application sets. XML and brace-format output: just display set output is read. FIPS mode: not checked yet. System scripts and event options: a login with view-configuration does not see them, so they are not in the file.

Does the file hold passwords or keys?

With the view-configuration class, Junos prints SECRET-DATA in place of passwords and keys. If a login with the secret permission runs the export (the super-user class has it), the file holds encrypted-password values and $9$ shared secrets; Juniper says the $9$ format uses "an obfuscation algorithm, which is not a very strong encryption for configuration secrets". Treat such a file like a password file. With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.