Metadata-Version: 2.4
Name: hemspect
Version: 4.0.0
Summary: Enterprise package security scanner for PSADT
Author: Hemendra Mahajan
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: pyyaml>=6.0
Requires-Dist: cryptography>=41.0.0
Requires-Dist: pefile>=2023.2.7

# 🛡 HemSpect v4.0

**Package Security Scanner for PowerShell App Deployment Toolkit (PSADT)**

HemSpect is an enterprise security scanner purpose-built for organizations that deploy software using the **PowerShell App Deployment Toolkit (PSADT)**. It performs deep security analysis of deployment packages before they reach production endpoints — catching credential leaks, malware techniques, and compliance violations that standard antivirus and EDR solutions miss.

---

## 🚀 Quick Start

### Installation

```powershell
# Install the latest version from PyPI
pip install hemspect
```

### Scan a Single Package

```powershell
# Scan and generate reports in default output directory
hemspect scan "C:\Packages\MyApp" --format all

# Specify output directory and digitally sign the report
hemspect scan "C:\Packages\MyApp" -o "C:\HemSpect\MyApp" --format all --sign-report
```

### Factory Scan (Batch Mode)

```powershell
# Scan an entire package factory in one command
hemspect factory-scan "\\server\PackageFactory" -o "C:\HemSpect\FactoryReport"
```

---

## 🔐 Exit Codes

| Code | Meaning |
|------|---------|
| `0` | **APPROVED** — Package meets all security thresholds |
| `1` | **REVIEW REQUIRED** — Manual analyst review needed |
| `2` | **REJECTED** — Critical/High findings above threshold |
| `3` | **SCAN ERROR** — Exception during scan |
| `4` | **MANIFEST INVALID** — Signature verification failed |

---
<p align="center">
  <sub>// Designed by <b>Hem</b></sub>
</p>
