# 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:**
```bash
pip install git+https://github.com/your-username/network_security.git
```
**Install from local source:**
```bash
git clone https://github.com/your-username/network_security.git
cd network_security
pip install .
```
**Development mode installation (changes take effect immediately):**
```bash
pip install -e .
```
### Manual Installation (without pip)
```bash
git clone https://github.com/your-username/network_security.git
cd network_security
```
## Usage
### After pip installation
Run full audit:
```bash
network-security-audit
```
### Manual execution (without pip installation)
```bash
python3 run.py
```
### Run specific checks on Unix/Linux
```bash
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:
```bash
# 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 AuthConfig` restriction (prevents directory traversal via `.htaccess`)
- **U-39**: Apache `FollowSymLinks` restriction (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)
1. **If Python is installed:**
```powershell
# Install directly from Git repository
pip install git+https://github.com/your-username/network_security.git
# Run
network-security-audit
```
2. **Without Python, download directly:**
```powershell
# Clone repository
git clone https://github.com/your-username/network_security.git
cd network_security
# After installing Python
python run.py
```
### Linux VM
```bash
# After SSH to VM
pip install git+https://github.com/your-username/network_security.git
# Run
network-security-audit
```
## Uninstallation
```bash
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "network-security-audit",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "security, audit, vulnerability, compliance, apache",
"author": null,
"author_email": "Your Name <your.email@example.com>",
"download_url": "https://files.pythonhosted.org/packages/32/10/a653689599d98628395ca4a30ab1534ff0a13923b9bdcd69c91785bf33a0/network_security_audit-1.0.0.tar.gz",
"platform": null,
"description": "# Network Security Audit Framework\n\nA 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.\n\n## Features\n\n- **Cross-Platform Support**: Works on Linux, Unix, and Windows environments\n- **Automated Detection & Remediation**: Automatically detects and fixes security vulnerabilities\n- **Structured Reporting**: JSON-formatted reports with MITRE ATT&CK TTPs\n- **Backup System**: Automatic backup creation before any modifications\n- **Extensible**: Easy to add new security checks\n\n## Installation\n\n### Install via pip (Recommended)\n\n**Install directly from Git repository:**\n```bash\npip install git+https://github.com/your-username/network_security.git\n```\n\n**Install from local source:**\n```bash\ngit clone https://github.com/your-username/network_security.git\ncd network_security\npip install .\n```\n\n**Development mode installation (changes take effect immediately):**\n```bash\npip install -e .\n```\n\n### Manual Installation (without pip)\n\n```bash\ngit clone https://github.com/your-username/network_security.git\ncd network_security\n```\n\n## Usage\n\n### After pip installation\n\nRun full audit:\n```bash\nnetwork-security-audit\n```\n\n### Manual execution (without pip installation)\n\n```bash\npython3 run.py\n```\n\n### Run specific checks on Unix/Linux\n\n```bash\ncd network_security/unix\nsource ./includes/functions.sh\nU-37 # Apache AllowOverride AuthConfig check\nU-39 # Apache FollowSymLinks check\n```\n\n## Output Locations\n\n### For installed package\n\nLogs and reports are created in the installed package directory:\n```bash\n# Check installation location\npython3 -c \"import network_security; print(network_security.__file__)\"\n\n# Typical locations:\n# ~/.local/lib/python3.x/site-packages/network_security/\n# /usr/local/lib/python3.x/site-packages/network_security/\n```\n\nOutput files:\n- **Unix/Linux logs**: `network_security/unix/logs/U-XX.log`\n- **Unix/Linux reports**: `network_security/unix/reports/U-XX.json`\n- **Windows reports**: `network_security/windows/reports/`\n\n### For manual execution\n\n- **Unix/Linux logs**: `network_security/unix/logs/`\n- **Unix/Linux reports**: `network_security/unix/reports/`\n- **Windows reports**: `network_security/windows/reports/`\n\n## Current Security Checks\n\n### Unix/Linux\n- **U-37**: Apache `AllowOverride AuthConfig` restriction (prevents directory traversal via `.htaccess`)\n- **U-39**: Apache `FollowSymLinks` restriction (prevents symbolic link exploitation)\n\n### Windows\n- Coming soon\n\n## System Requirements\n\n- **Python**: 3.7 or higher\n- **Unix/Linux**: bash, zsh, or sh shell\n- **Windows**: PowerShell\n- **Permissions**: Some checks and remediation require administrator/root privileges\n\n## Testing in VM\n\n### PowerShell (Windows VM)\n\n1. **If Python is installed:**\n```powershell\n# Install directly from Git repository\npip install git+https://github.com/your-username/network_security.git\n\n# Run\nnetwork-security-audit\n```\n\n2. **Without Python, download directly:**\n```powershell\n# Clone repository\ngit clone https://github.com/your-username/network_security.git\ncd network_security\n\n# After installing Python\npython run.py\n```\n\n### Linux VM\n\n```bash\n# After SSH to VM\npip install git+https://github.com/your-username/network_security.git\n\n# Run\nnetwork-security-audit\n```\n\n## Uninstallation\n\n```bash\npip uninstall network-security-audit\n```\n\n## Development\n\nTo add new security checks, refer to the \"Adding New Security Checks\" section in `CLAUDE.md`.\n\n## License\n\nMIT License\n\n## Contributing\n\nIssues and pull requests are welcome.\n",
"bugtrack_url": null,
"license": null,
"summary": "Cross-platform security auditing framework for automated security assessments",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/your-username/network_security",
"Issues": "https://github.com/your-username/network_security/issues"
},
"split_keywords": [
"security",
" audit",
" vulnerability",
" compliance",
" apache"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1d4460b03a12d69175c63d9d017c681de6d5c95794658a10ef8ba60e81741b9c",
"md5": "59bf9d5ce7ce80c5ce6224edba216045",
"sha256": "12e276704eb190be1f2391baac3fbadd98f57f53da2a50b99c50e3da49c75332"
},
"downloads": -1,
"filename": "network_security_audit-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "59bf9d5ce7ce80c5ce6224edba216045",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 14644,
"upload_time": "2025-10-27T11:36:25",
"upload_time_iso_8601": "2025-10-27T11:36:25.469921Z",
"url": "https://files.pythonhosted.org/packages/1d/44/60b03a12d69175c63d9d017c681de6d5c95794658a10ef8ba60e81741b9c/network_security_audit-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3210a653689599d98628395ca4a30ab1534ff0a13923b9bdcd69c91785bf33a0",
"md5": "f5716c6760c2ac642b5e5d5b59b1d079",
"sha256": "b3333286752cacde5b0e29161e5d7d3fa807e412dbd7ac3b665576d508ffbb4a"
},
"downloads": -1,
"filename": "network_security_audit-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "f5716c6760c2ac642b5e5d5b59b1d079",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 13638,
"upload_time": "2025-10-27T11:36:27",
"upload_time_iso_8601": "2025-10-27T11:36:27.154777Z",
"url": "https://files.pythonhosted.org/packages/32/10/a653689599d98628395ca4a30ab1534ff0a13923b9bdcd69c91785bf33a0/network_security_audit-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-27 11:36:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "your-username",
"github_project": "network_security",
"github_not_found": true,
"lcname": "network-security-audit"
}