mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-07-24 05:30:58 +03:00
Add folder anatomy (scripts/agent.py + references/api-reference.md) for 648 cybersecurity skills
Complete skill folder anatomy across all cybersecurity skills: - scripts/agent.py: 80-150 line Python agents using real libraries (impacket, boto3, azure-mgmt-*, kubernetes, pefile, yara, scapy, shodan, stix2, etc.) - references/api-reference.md: real API documentation with method signatures - LICENSE: MIT license for all skill folders
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
# API Reference: Performing Cloud Native Forensics with Falco
|
||||
|
||||
## Falco Rule YAML Structure
|
||||
|
||||
```yaml
|
||||
- rule: Shell Spawned in Container
|
||||
desc: Detect shell in container
|
||||
condition: >
|
||||
spawned_process and container
|
||||
and proc.name in (bash, sh, zsh)
|
||||
output: >
|
||||
Shell spawned (user=%user.name command=%proc.cmdline
|
||||
container=%container.name image=%container.image.repository)
|
||||
priority: WARNING
|
||||
tags: [container, shell, mitre_execution]
|
||||
```
|
||||
|
||||
## Falco Condition Fields
|
||||
|
||||
| Field | Description |
|
||||
|-------|-------------|
|
||||
| `proc.name` | Process name |
|
||||
| `proc.cmdline` | Full command line |
|
||||
| `proc.pname` | Parent process name |
|
||||
| `user.name` | User running process |
|
||||
| `fd.name` | File descriptor name/path |
|
||||
| `container.name` | Container name |
|
||||
| `container.image.repository` | Container image |
|
||||
| `container.privileged` | Privileged flag |
|
||||
| `evt.type` | Syscall type (execve, open, connect) |
|
||||
|
||||
## Falco Priority Levels
|
||||
|
||||
`EMERGENCY > ALERT > CRITICAL > ERROR > WARNING > NOTICE > INFO > DEBUG`
|
||||
|
||||
## Falco HTTP API
|
||||
|
||||
```python
|
||||
import requests
|
||||
# Health check
|
||||
requests.get("http://localhost:8765/healthz")
|
||||
# Version
|
||||
requests.get("http://localhost:8765/version")
|
||||
```
|
||||
|
||||
## Helm Deployment
|
||||
|
||||
```bash
|
||||
helm repo add falcosecurity https://falcosecurity.github.io/charts
|
||||
helm install falco falcosecurity/falco \
|
||||
--set driver.kind=ebpf \
|
||||
--set falcosidekick.enabled=true
|
||||
```
|
||||
|
||||
### References
|
||||
|
||||
- Falco: https://falco.org/docs/
|
||||
- Falco rules: https://github.com/falcosecurity/rules
|
||||
- Falcosidekick: https://github.com/falcosecurity/falcosidekick
|
||||
Reference in New Issue
Block a user