Download runtime/python/dibaguard/shield/__init__.py from DibaAi/DibaGuard-Open: direct link, hf CLI and curl.
- Browser
- Download file 843 Bytes
-
https://huggingface.co/DibaAi/DibaGuard-Open/resolve/main/runtime/python/dibaguard/shield/__init__.py
- Command line
-
hf download hf://DibaAi/DibaGuard-Open/runtime/python/dibaguard/shield/__init__.py
-
curl -L -o __init__.py https://huggingface.co/DibaAi/DibaGuard-Open/resolve/main/runtime/python/dibaguard/shield/__init__.py
843 Bytes
| """Shield: the protective layer around the engine - policy, position awareness, posture audit, enforcement, playbooks. | |
| policy what the operator allows the layer to do (report / enforce), per family and severity, allowlists | |
| position what the layer can see from where it runs -> which roles it takes (edge WAF, host firewall, sensor, chain node) | |
| posture what is exposed that should not be (listening ports vs policy, forgotten services), with fixes | |
| enforce block / rate-limit / challenge with TTLs and an audit log; nftables, iptables, Windows Firewall, or dry-run | |
| playbook recent attack patterns (2024-2026) as behaviour signatures over the engine's own features, with actions | |
| adapters other inputs seen as streams (JSON-RPC for chain nodes) | |
| """ | |
| from dibaguard.shield.policy import Policy # noqa: F401 | |