Metadata-Version: 2.4
Name: defense-core
Version: 0.3.0
Summary: Autonomous Agentic SOC with 20-Tier BlueSTAR Architecture for Cyber Defense
Author-email: Muh Agus <pmuhammadagus-byte@users.noreply.github.com>
License: MIT
Project-URL: Homepage, https://github.com/pmuhammadagus-byte/defense-core
Project-URL: Repository, https://github.com/pmuhammadagus-byte/defense-core
Project-URL: Issues, https://github.com/pmuhammadagus-byte/defense-core/issues
Keywords: cybersecurity,soc,agentic,defense,bluestar,autonomous,threat-intelligence,behavioral-analysis
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
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 :: System :: Monitoring
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: mypy>=1.5.0; extra == "dev"
Dynamic: license-file

# 🛡️ Defense Core: Autonomous Agentic SOC v0.2.0

<p align="center">
  <img src="https://img.shields.io/badge/Architecture-BlueSTAR-blue?style=for-the-badge&logo=shield" alt="BlueSTAR">
  <img src="https://img.shields.io/badge/Tiers-20_Plus-success?style=for-the-badge" alt="20+ Tiers">
  <img src="https://img.shields.io/badge/Version-0.2.0-orange?style=for-the-badge" alt="Version">
  <img src="https://img.shields.io/badge/License-MIT-green?style=for-the-badge" alt="License">
</p>

---

## 🚀 Overview
**Defense Core** adalah sistem pertahanan siber otomatis (**Autonomous Agentic SOC**) berbasis arsitektur **BlueSTAR**. Versi **0.2.0** memperkenalkan **Dynamic Plugin Architecture**—sistem secara otomatis memindai dan memuat semua tier yang ada di folder `core/` secara modular.

> *"Sistem ini memiliki arsitektur 20 Tier yang nyata dan berjalan secara teknis. Namun secara fungsional, sistem ini berada dalam fase evolusi."*

---

## ⚡ Fitur Utama v0.2.0
- **Dynamic Plugin Architecture**: Orchestrator mendeteksi file `tier*_*.py` secara otomatis. Tambahkan kapabilitas baru hanya dengan menaruh file di folder `core/`.
- **Tier 0 Auto-Sensing**: Monitoring log sistem secara *real-time* melalui flag `--auto`.
- **BlueSTAR Standards**: Implementasi hierarki keputusan 20-lapis yang selaras dengan standar riset keamanan siber 2026.
- **PyPI Integration**: Terpaket sempurna menggunakan PEP 621 untuk distribusi global.

---

## 🏗️ Hierarki Pertahanan

### 🛡️ Tactical Layer (Production-Grade)
| Tier | Name | Capability |
| :--- | :--- | :--- |
| **00** | **Sensor** | Automated log monitoring & Telemetry extraction |
| **01** | **Responder** | Deterministic priority ladder (Instant containment) |
| **02** | **Reasoning** | LLM-based chain-of-thought investigation |
| **03** | **Heuristic** | Entity-anchored correlation (User/Identity focus) |
| **04** | **Behavioral** | Long-term profiling & Baseline drift tracking |
| **05** | **Threat Intel** | Global threat feed integration & Enrichment |

### 🔍 Analytic Layer (Working Minimal)
| Tier | Name | Capability |
| :--- | :--- | :--- |
| **06** | **Predictive** | Probabilistic attack path mapping (ATT&CK) |
| **07** | **Deception** | Automated honeypot & decoy deployment |
| **08** | **Governance** | Policy guardrails & Audit compliance |
| **09** | **Strategic** | Game Theoretic action selection |
| **10** | **Resilience** | Autonomous self-healing & Configuration rollback |
| **11** | **Attribution** | Adversary profiling (APT Attribution) |
| **12** | **Ecosystem** | Cross-ecosystem orchestration (Cloud/SaaS) |
| **13** | **Knowledge** | Live CVE & Security advisory ingestion |
| **14** | **Meta-Defense** | Internal SOC subversion monitoring |
| **15** | **Swarm** | Federated collective defense signal sharing |

### 🧠 Strategic Layer (Architecture Scaffold)
| Tier | Name | Capability |
| :--- | :--- | :--- |
| **16** | **Economic** | FinOps Security (Cost/Benefit audit) |
| **17** | **Legal** | Privacy compliance (GDPR/PDP guardrails) |
| **18** | **Psychological** | Adversary frustration & counter-manipulation |
| **19** | **Sync** | Federated AI state synchronization |
| **20** | **Singularity** | Autonomous self-optimization of all tiers |

---

## 🛠️ Instalasi & Penggunaan

### 1. Instalasi via PyPI (Direkomendasikan)
```bash
pip install defense-core
```

### 2. Monitoring Otomatis
Gunakan skrip `run_soc.sh` untuk mengaktifkan **Tier 0 Sensor** yang memantau log sistem secara *real-time*:
```bash
cd /data/workspace/defense-core
./run_soc.sh --auto
```

### 3. Manual Telemetry Injection
```bash
cd /data/workspace/defense-core
./run_soc.sh --src 192.168.1.50 --score 95 --category identity --user admin_agus
```

---

## 📈 Status Kematangan Proyek
Kami menerapkan **Honesty Policy** dalam pelaporan kemajuan:
- ✅ **Tier 0 & 1-5**: **Production-Grade**. Stabil, teruji, dan siap untuk deployment operasional.
- ⚠️ **Tier 6-15**: **Working Minimal**. Berjalan secara teknis namun masih menggunakan placeholder data (CVE dummy/Simulated swarm nodes).
- 🏗️ **Tier 16-20**: **Architecture Scaffold**. Struktur teknis yang sudah terintegrasi, siap diisi dengan logika strategi tingkat lanjut.

---

## 📝 License
Distributed under the **MIT License**. See `LICENSE` for more information.

---
<p align="center">
  <i>Maintained with ❤️ by <b>Muh Agus</b></i>
</p>
