Cross-platform security auditing framework for automated security assessments
Project description
Network Security Audit Framework
A cross-platform security auditing framework that performs automated security assessments on Unix/Linux and Windows systems. The framework detects security vulnerabilities, automatically remediates them, and generates structured JSON reports with detailed findings.
Features
- Cross-Platform Support: Works on Linux, Unix, and Windows environments
- Automated Detection & Remediation: Automatically detects and fixes security vulnerabilities
- Structured Reporting: JSON-formatted reports with MITRE ATT&CK TTPs
- Backup System: Automatic backup creation before any modifications
- Extensible: Easy to add new security checks
Installation
Install via pip (Recommended)
Install directly from Git repository:
pip install git+https://github.com/your-username/network_security.git
Install from local source:
git clone https://github.com/your-username/network_security.git
cd network_security
pip install .
Development mode installation (changes take effect immediately):
pip install -e .
Manual Installation (without pip)
git clone https://github.com/your-username/network_security.git
cd network_security
Usage
After pip installation
Run full audit:
network-security-audit
Manual execution (without pip installation)
python3 run.py
Run specific checks on Unix/Linux
cd network_security/unix
source ./includes/functions.sh
U-37 # Apache AllowOverride AuthConfig check
U-39 # Apache FollowSymLinks check
Output Locations
For installed package
Logs and reports are created in the installed package directory:
# Check installation location
python3 -c "import network_security; print(network_security.__file__)"
# Typical locations:
# ~/.local/lib/python3.x/site-packages/network_security/
# /usr/local/lib/python3.x/site-packages/network_security/
Output files:
- Unix/Linux logs:
network_security/unix/logs/U-XX.log - Unix/Linux reports:
network_security/unix/reports/U-XX.json - Windows reports:
network_security/windows/reports/
For manual execution
- Unix/Linux logs:
network_security/unix/logs/ - Unix/Linux reports:
network_security/unix/reports/ - Windows reports:
network_security/windows/reports/
Current Security Checks
Unix/Linux
- U-37: Apache
AllowOverride AuthConfigrestriction (prevents directory traversal via.htaccess) - U-39: Apache
FollowSymLinksrestriction (prevents symbolic link exploitation)
Windows
- Coming soon
System Requirements
- Python: 3.7 or higher
- Unix/Linux: bash, zsh, or sh shell
- Windows: PowerShell
- Permissions: Some checks and remediation require administrator/root privileges
Testing in VM
PowerShell (Windows VM)
- If Python is installed:
# Install directly from Git repository
pip install git+https://github.com/your-username/network_security.git
# Run
network-security-audit
- Without Python, download directly:
# Clone repository
git clone https://github.com/your-username/network_security.git
cd network_security
# After installing Python
python run.py
Linux VM
# After SSH to VM
pip install git+https://github.com/your-username/network_security.git
# Run
network-security-audit
Uninstallation
pip uninstall network-security-audit
Development
To add new security checks, refer to the "Adding New Security Checks" section in CLAUDE.md.
License
MIT License
Contributing
Issues and pull requests are welcome.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file network_security_audit-1.1.0.tar.gz.
File metadata
- Download URL: network_security_audit-1.1.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f03507f692b4501a5a74e65749f8d1e1a7ac245c67298d4143ec81ffea98703e
|
|
| MD5 |
d2566fd63dff2b2bdba746db81d5a25f
|
|
| BLAKE2b-256 |
4db936aef9bb1973382584415715741cc52b4f16756f0bb3c77055152c02491d
|
File details
Details for the file network_security_audit-1.1.0-py3-none-any.whl.
File metadata
- Download URL: network_security_audit-1.1.0-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b85818b5fd6b44b09b49253f8891b5c250ac30dae1145b687781bdc7a09baf9
|
|
| MD5 |
e8eb6dc9c2adfc015c840e8e142705db
|
|
| BLAKE2b-256 |
982367153be48b8c3069cd1b9f7746beefb5a773ab11d919c978a30afe4532ca
|