Overview
Somnium provides an interactive command-line menu system that allows you to run various security tests to validate your network security controls. Each test generates malicious or suspicious traffic patterns to verify your defensive systems are working correctly.Starting Somnium
1
Launch the application
Run Somnium from the command line:You’ll see the Somnium ASCII art banner and the main menu.
2
Review the menu options
The menu displays 9 test categories plus an exit option:
3
Select a test
Enter the number corresponding to your desired test and press Enter.
After each test completes, the screen clears and returns you to the main menu for additional testing.
Test Categories
- Known Bad IPs
- Phishing URLs
- TOR Exit Nodes
- Malware Distribution
- Cryptomining
- DGA Domains
- Remote Desktop Tools
- Bad User Agents
- DNS over HTTPS
Option 1: Test connection with known bad IPsTests connectivity to malicious IP addresses from threat intelligence feeds.What it does:
- Downloads samples from Cisco Talos, EmergingThreats, and Mirai databases
- Selects 15 random malicious IP addresses
- Tests connectivity on ports 80, 22, and 443
- Records results with timestamps
IP_Results.txtSample output:Best Practices
Run tests during maintenance windows
Run tests during maintenance windows
Schedule security validation testing during planned maintenance windows to:
- Avoid alarm fatigue for SOC analysts
- Coordinate with security team for expected alerts
- Document baseline behavior
Test one category at a time
Test one category at a time
Run individual test categories to:
- Isolate specific security control validation
- Make correlation easier in SIEM/IPS logs
- Simplify troubleshooting if issues arise
Document your results
Document your results
After each test:
- Review the output file for unexpected successes
- Verify your security systems logged the attempts
- Document any gaps in detection or blocking
- Create remediation tickets as needed
Test from representative locations
Test from representative locations
Run Somnium from:
- Internal network segments
- DMZ environments
- Remote/VPN users
- Different geographic locations
Exiting Somnium
To exit the application:- Enter
0at the menu prompt - The application will clear the screen and terminate