Basic Linux security scanner — check SSH config, file permissions, SUID binaries, world-writable files, and kernel parameters
Project description
dargslan-security-scan
Linux Security Scanner — Check SSH config, SUID binaries, kernel parameters, file permissions, world-writable files, and get a security score. Zero external dependencies.
Installation
pip install dargslan-security-scan
CLI Usage
dargslan-secscan report # Full security report with score
dargslan-secscan ssh # Check SSH configuration
dargslan-secscan suid # Find SUID/SGID binaries
dargslan-secscan kernel # Check kernel parameters
dargslan-secscan perms # Check file permissions
dargslan-secscan score # Security score (0-100)
dargslan-secscan json # JSON output
Python API
from dargslan_security_scan import SecurityScanner
ss = SecurityScanner()
ss.print_report()
score = ss.score()
ssh_issues = ss.check_ssh_config()
suid = ss.find_suid_files()
kernel = ss.check_kernel_params()
full = ss.full_scan()
What It Checks
- SSH configuration (root login, password auth, empty passwords, port)
- SUID/SGID binaries (known vs unknown)
- Kernel security parameters (IP forwarding, ASLR, SYN cookies, etc.)
- File permissions (/etc/passwd, /etc/shadow, sshd_config, etc.)
- World-writable files in /etc and /var
More Resources
License
MIT — Dargslan
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 dargslan_security_scan-1.0.0.tar.gz.
File metadata
- Download URL: dargslan_security_scan-1.0.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e1879ad6508a779eed67bf5bcad30f5d70479ef0a3fbe6d9c30da3c1793987a
|
|
| MD5 |
d219e8e655cee25969a4310f3280dbf2
|
|
| BLAKE2b-256 |
fd8b9689ef841e4d33bebd605bd93e98223c81d86bd0529c758d3aaad5a9379a
|
File details
Details for the file dargslan_security_scan-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dargslan_security_scan-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4cf600f5da6720000478d17f3e2b901a12c3be58b779205dc7fb14ef47bb1c2
|
|
| MD5 |
d7f809940648c2578a749517f91a00e1
|
|
| BLAKE2b-256 |
983fc8483df10b7ace35afdecda773f1509bd4be922795e5b5b38cc849cdc2d3
|