Metadata-Version: 2.4
Name: secuditor
Version: 1.0.0
Summary: Cross-platform security diagnostics and auditing toolkit.
Author: Menahem Levinski
License-Expression: MIT
Project-URL: Homepage, https://github.com/secuditor/secuditor-cli
Project-URL: Repository, https://github.com/secuditor/secuditor-cli
Project-URL: Issues, https://github.com/secuditor/secuditor-cli/issues
Keywords: security,cybersecurity,security-auditing,network-discovery,system-diagnostics,command-line
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: Topic :: Security
Classifier: Topic :: System :: Networking
Classifier: Topic :: System :: Systems Administration
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: certifi>=2023.7.22
Requires-Dist: cryptography>=41.0
Requires-Dist: psutil>=5.9
Provides-Extra: test
Requires-Dist: pytest>=8.0; extra == "test"
Provides-Extra: dev
Requires-Dist: build>=1.0; extra == "dev"
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Dynamic: license-file

# Secuditor CLI

An open-source, cross-platform Python library and CLI for security diagnostics, configuration auditing, and system inventory across Windows, Linux, and macOS, inspired by Secuditor Lite.

## Installation

Requires Python 3.10 or later:

```bash
pip install secuditor
```

## CLI Usage

Run a single audit module or `-all` / `--audit` to run the full suite:

| Short&nbsp;Flag | Long&nbsp;Flag&nbsp;Alias | Description |
| --- | --- | --- |
| `-com` | `--system` | System specifications, firmware, memory, GPU, and connected hardware |
| `-end` | `--endpoint` | Endpoint security settings (Defender, firewall, BitLocker/LUKS/FileVault, UAC, MAC, etc.) |
| `-rem` | `--remote` | Remote access services, protocols (RDP, SSH, SMB, WinRM, DCOM), and Bluetooth exposure |
| `-smb` | `--shares` | Shared folders, network exports (SMB/Samba/NFS), and access permissions |
| `-pth` | `--paths` | Sensitive files, credential/key artifacts, and permission exposure scan |
| `-prc` | `--processes` | Running processes behavioral security scan with risk scoring |
| `-net` | `--network` | Network adapters, IPs, gateways, DNS, DHCP, and Wi-Fi |
| `-dgm` | `--gateway` | Default gateway discovery, management ports, NAT, and VPN |
| `-app` | `--apps` | Installed applications inventory |
| `-dsa` | `--domain` | Domain affiliation, users, LAPS, NTLM, and NTP |
| `-pwd` | `--password` | Password policy, lockout settings, and PIN/biometrics |
| `-prx` | `--proxy` | System/environment proxy settings, PAC scripts, and local proxy listeners |
| `-ssl` | `--intercep` | SSL/TLS interception and certificate trust inspection |
| `-all` | `--audit` | Run all 13 audits in sequence |

### Options

| Option&nbsp;/&nbsp;Argument | Description |
| --- | --- |
| `--json` | Output results as structured JSON to stdout (or to the file given by `-o`) |
| `-o PATH` / `--output PATH` | Write plain-text or JSON output to a UTF-8 file instead of stdout (creates missing parent directories) |
| `--version` | Show the installed `secuditor` version and exit |
| `-h` / `--help` | Show CLI usage help, available audit flags, and options, then exit |

- Plain-text `secuditor -all` prints each audit section followed by a **Summary Report** table with Pass / Fail / N/A counts and MITRE ATT&CK references.
- JSON `secuditor -all --json` outputs a single JSON object containing all 13 audit module results keyed by module name.

### Examples

```bash
secuditor -all
secuditor -all -o report.txt
secuditor -all --json
secuditor -all --json -o report.json

secuditor -smb
secuditor -end
secuditor -prc

secuditor --version
secuditor --help
```

## Python Library Usage

Audit classes are lazily loaded from `secuditor` and expose an `.audit()` method returning a structured dictionary:

```python
from secuditor import (
    SystemSettings,
    SecurityAudit,
    RemoteAccessSettings,
    SharedFolders,
    SensitivePaths,
    SuspiciousProcesses,
    NetworkSettings,
    GatewayDiscovery,
    InstalledApps,
    DomainAudit,
    PasswordPolicy,
    SuspiciousProxy,
    SSLInterception,
    FullAudit,
)

report = DomainAudit().audit()
print(report["affiliation"])

full_report = FullAudit().audit()
print(list(full_report.keys()))
```

## Notes

- All checks are strictly read-only and do not modify system, registry, or policy configuration.
- Certain checks (such as `secedit` policy export, BitLocker, LAPS, ACLs, or protected process inspection on Windows, and root-owned configs, firewall rules, or PAM policies on Linux/macOS) may require elevated privileges and report `unknown` or `unavailable` otherwise.
- Supported on Windows, Linux, and macOS with Python 3.10+.

## License

MIT License — see [LICENSE](https://github.com/secuditor/secuditor-cli/blob/main/LICENSE) for details.

## Info

Website: [secuditor.com](https://secuditor.com/)
