Metadata-Version: 2.4
Name: deltacode-cli
Version: 0.1.0
Summary: DeltaCode Security CLI - AI-powered security analysis and autonomous remediation
Author-email: DeltaAI-LLM <kiralikhacker@protonmail.com>
License: Apache-2.0
Project-URL: Homepage, https://deltaai-llm.github.io/deltacode/
Project-URL: Documentation, https://deltaai-llm.github.io/deltacode/docs
Project-URL: Source, https://github.com/DeltaAI-LLM/deltacode
Project-URL: Issues, https://github.com/DeltaAI-LLM/deltacode/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: typer>=0.9.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.5.0
Requires-Dist: pydantic-settings>=2.1.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0
Requires-Dist: platformdirs>=4.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: gitpython>=3.1.0
Requires-Dist: networkx>=3.0
Requires-Dist: diskcache>=5.6.0
Requires-Dist: prompt-toolkit>=3.0.0
Requires-Dist: cryptography>=42.0.0
Requires-Dist: feedparser>=6.0.0
Provides-Extra: security
Requires-Dist: bandit>=1.7.0; extra == "security"
Provides-Extra: search
Requires-Dist: chromadb>=0.4.0; extra == "search"
Provides-Extra: research
Requires-Dist: playwright>=1.40.0; extra == "research"
Provides-Extra: msfrpc
Requires-Dist: msgpack>=1.0.0; extra == "msfrpc"
Provides-Extra: all
Requires-Dist: deltacode-cli[msfrpc,research,search,security]; extra == "all"
Requires-Dist: playwright>=1.40.0; extra == "all"
Requires-Dist: bandit>=1.7.0; extra == "all"
Requires-Dist: chromadb>=0.4.0; extra == "all"
Requires-Dist: msgpack>=1.0.0; extra == "all"

<div align="center">

# DeltaCode Security CLI

**AI-powered security analysis, vulnerability detection, and autonomous remediation.**

[![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)]()
[![License](https://img.shields.io/badge/license-Apache%202.0-green.svg)]()
[![Python](https://img.shields.io/badge/python-3.10%2B-purple.svg)]()

</div>

---

## Quick Start

```bash
# Install
pip install deltacode-cli

# Authenticate with your DeltaAI license
deltacode auth login --api-url https://your-deltaai-server:8100 --api-key YOUR_API_KEY --license-key YOUR_LICENSE_KEY --organization YOUR_ORG

# Check status
deltacode status

# Scan a project for vulnerabilities
deltacode deps
deltacode secrets
deltacode rules scan ./src

# Generate a security assessment plan
deltacode assess

# Run the autonomous security pipeline
deltacode pipeline run
```

---

## Features

| Category | Features |
|----------|----------|
| **Vulnerability Detection** | Static analysis (Semgrep, Bandit, CodeQL, 23 custom rules), secret scanning (30+ patterns, TruffleHog, GitLeaks, entropy detection), dependency analysis (pip, npm, cargo, go), supply chain risk assessment |
| **Intelligent Remediation** | Auto-fix engine (SEARCH/REPLACE, rollback, validation), 16 CWE best-practice library, security test generation, regression/mutation/coverage testing, exploit fix verification |
| **Threat Intelligence** | CVE/NVD search & details, CISA Known Exploited Vulns, MITRE ATT&CK framework, CWE/CAPEC knowledge base, IOC extraction, trending CVEs, vendor advisory RSS (8 sources) |
| **Autonomous Workflows** | 6-agent security team (Analyzer, Researcher, Fixer, Validator, Compliance, Coordinator), scan→analyze→fix→validate→compliance pipeline, scheduled audits, incident response automation |
| **Enterprise Compliance** | SOC 2 (10 controls), ISO 27001 (9 controls), PCI-DSS v4.0 (10 controls), HIPAA Security Rule (20 controls), GDPR (15 articles), custom compliance rules, evidence collection, risk dashboard, trend analysis |
| **Tool Integration (MCP)** | Burp Suite, OWASP ZAP, Metasploit, Nessus/OpenVAS, NVD, MITRE ATT&CK, CWE/CAPEC, vendor docs — 8 connectors, 34 tools |
| **Security Research** | Playwright-based browser agent, CVE researcher, vendor advisory scraper, 12 RSS security feeds, citation & attribution system |
| **Operational Security** | Audit trail, anomaly detection, decision review, feedback loop, role-based approval gates, emergency stop, encrypted credential storage |

---

## Quick Examples

```bash
# Dependency vulnerability scan
deltacode deps

# Secret detection
deltacode secrets

# CWE lookup with remediation patterns
deltacode cwe 89 --remediation

# Supply chain risk assessment
deltacode supply-chain

# CVE threat intelligence check
deltacode threat intel --query "CVE-2024-21626"

# Trend analysis
deltacode trend snapshot --target ./project
deltacode trend summary

# Risk dashboard
deltacode risk dashboard

# Compliance report (HIPAA, GDPR, SOC2, etc.)
deltacode compliance report --framework hipaa

# Mutation testing
deltacode testmutation --target ./src

# MCP tool execution
deltacode mcp search-cve --query "apache struts"

# Autonomous pipeline
deltacode pipeline run --target ./project --auto-approve
```

---

## Documentation

- [Deployment Guide](docs/DEPLOYMENT.md)
- [CLI Reference](docs/CLI_REFERENCE.md)
- [Security & Compliance](docs/DEPLOYMENT.md#security-notes)

---

## System Requirements

- **Python**: 3.10 or later
- **Operating System**: Linux, macOS, Windows
- **DeltaAI API**: A running DeltaAI server instance for LLM-powered features
- **Optional**: Docker (for sandboxed execution), Playwright (for browser research)

---

## License

Apache 2.0. See [LICENSE](LICENSE) for details.

**Legal Notice:** This tool is intended for authorized security testing only. Users must have explicit permission to scan any systems. Misuse for unauthorized access is prohibited.

---

## Support

- Enterprise support: [dev@deltaai.com](mailto:dev@deltaai.com)
- Report issues: [GitHub Issues](https://github.com/deltaai/deltacode/issues)
- Documentation: [docs.deltaai.com](https://docs.deltaai.com)
