mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
53 lines
1.5 KiB
Markdown
53 lines
1.5 KiB
Markdown
# API Reference: Azure AD Conditional Access Audit Agent
|
|
|
|
## Dependencies
|
|
|
|
| Library | Version | Purpose |
|
|
|---------|---------|---------|
|
|
| requests | >=2.28 | HTTP client for Microsoft Graph API |
|
|
|
|
## CLI Usage
|
|
|
|
```bash
|
|
python scripts/agent.py \
|
|
--tenant-id TENANT_ID --client-id CLIENT_ID --client-secret SECRET \
|
|
--output-dir /reports/
|
|
```
|
|
|
|
## Functions
|
|
|
|
### `ConditionalAccessClient(tenant_id, client_id, client_secret)`
|
|
Authenticates via OAuth2 client credentials to Microsoft Graph.
|
|
|
|
### `list_policies() -> list`
|
|
GET `/identity/conditionalAccess/policies` - All conditional access policies.
|
|
|
|
### `list_named_locations() -> list`
|
|
GET `/identity/conditionalAccess/namedLocations` - Named locations for geo-fencing.
|
|
|
|
### `audit_policy(policy) -> dict`
|
|
Checks for: MFA requirement, enabled state, app coverage, grant controls.
|
|
|
|
### `check_baseline_policies(policies) -> list`
|
|
Verifies essential baselines: MFA for admins, block legacy auth, require compliant devices.
|
|
|
|
### `generate_report(client) -> dict`
|
|
Full audit with per-policy findings and baseline gap analysis.
|
|
|
|
## Microsoft Graph Endpoints
|
|
|
|
| Endpoint | Purpose |
|
|
|----------|---------|
|
|
| `GET /identity/conditionalAccess/policies` | List CA policies |
|
|
| `GET /identity/conditionalAccess/namedLocations` | Named locations |
|
|
|
|
## Output Schema
|
|
|
|
```json
|
|
{
|
|
"total_policies": 15, "enabled_policies": 12,
|
|
"summary": {"high_risk": 3, "missing_baselines": 1},
|
|
"baseline_checks": [{"baseline": "Require MFA for admins", "implemented": true}]
|
|
}
|
|
```
|