Comprehensive Linux security auditing and hardening tool
Project description
Linux Security Audit Tool
A comprehensive CLI tool for auditing Linux system security posture.
Install
pip install linux-security-audit-tool
Usage
security-audit --help
security-audit audit
security-audit audit -p 0 -1 # Run specific phases
security-audit audit -o report.md # Save markdown report
security-audit audit --quiet # Summary only
CLI
security-audit [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
audit Run a full security audit.
version Show version information.
Development
git clone https://github.com/daedalus/linux-security-audit-tool.git
cd linux-security-audit-tool
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
API
from security_audit import gather_context, run_identity_checks, calculate_security_score
from security_audit.core import Finding, Severity
# Run a full audit
context = gather_context()
findings = run_identity_checks()
score = calculate_security_score(findings)
Audit Phases
The tool performs security checks across 9 phases:
- Phase 0: Context Gathering (hostname, OS, kernel)
- Phase 1: Identity & Access Control (users, sudo, SSH)
- Phase 2: Network Exposure (listening services, firewall)
- Phase 3: File System & Permissions (SUID, world-writable)
- Phase 4: Process & Service Posture (running services)
- Phase 5: Kernel & OS Hardening (sysctl, ASLR)
- Phase 6: Logging & Monitoring (auditd, logs)
- Phase 7: Package & Update Hygiene (updates, repos)
- Phase 8: Cryptographic Posture (SSH keys, TLS)
Project details
Release history Release notifications | RSS feed
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 linux_security_audit_tool-0.1.0.tar.gz.
File metadata
- Download URL: linux_security_audit_tool-0.1.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17d809611166e9cb6e6c0c7056ffac496dfbca3cb41bc4cc0042f7c77f7099f4
|
|
| MD5 |
f358d2eb95230e9fe4fb96b0c72e7688
|
|
| BLAKE2b-256 |
8b89634ba79ab511230cead54b10a0ccd0446c1eeb1d085ad437c20be164902c
|
Provenance
The following attestation bundles were made for linux_security_audit_tool-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on daedalus/linux-security-audit-tool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
linux_security_audit_tool-0.1.0.tar.gz -
Subject digest:
17d809611166e9cb6e6c0c7056ffac496dfbca3cb41bc4cc0042f7c77f7099f4 - Sigstore transparency entry: 1231425446
- Sigstore integration time:
-
Permalink:
daedalus/linux-security-audit-tool@27c8a721e27283e2875d7a0c283e57f444fdcc95 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@27c8a721e27283e2875d7a0c283e57f444fdcc95 -
Trigger Event:
release
-
Statement type:
File details
Details for the file linux_security_audit_tool-0.1.0-py3-none-any.whl.
File metadata
- Download URL: linux_security_audit_tool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4b431b0b5b5bffa22603f9938acb802a88fc0300366ef8ce521d3bc879c290f
|
|
| MD5 |
e24f6922c498be982bba1ed2964e8e0a
|
|
| BLAKE2b-256 |
43154a11475d43ec6e778b8158f9ea341d6e2b819f049fa3e71decd4eab07bed
|
Provenance
The following attestation bundles were made for linux_security_audit_tool-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on daedalus/linux-security-audit-tool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
linux_security_audit_tool-0.1.0-py3-none-any.whl -
Subject digest:
a4b431b0b5b5bffa22603f9938acb802a88fc0300366ef8ce521d3bc879c290f - Sigstore transparency entry: 1231425506
- Sigstore integration time:
-
Permalink:
daedalus/linux-security-audit-tool@27c8a721e27283e2875d7a0c283e57f444fdcc95 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@27c8a721e27283e2875d7a0c283e57f444fdcc95 -
Trigger Event:
release
-
Statement type: