Files
Anthropic-Cybersecurity-Skills/skills/implementing-osquery-for-endpoint-monitoring/SKILL.md
T
mukul975 27c6414ca5 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
2026-03-10 21:02:12 +01:00

1.3 KiB

name, description
name description
implementing-osquery-for-endpoint-monitoring Deploy osquery scheduled queries for continuous endpoint monitoring covering process inventory, network connections, file integrity, and persistence mechanisms. Generates osquery.conf with query packs, configures differential result logging, and analyzes query results to detect suspicious processes, unauthorized listeners, and file modifications in system directories.

Instructions

  1. Install dependencies: pip install requests (osquery installed on endpoints)
  2. Generate osquery.conf with scheduled query packs for:
    • Process monitoring: new processes, unusual parent-child relationships
    • Network listeners: unexpected listening ports and outbound connections
    • File integrity: modifications in /etc, /usr/bin, system32
    • Persistence: cron jobs, startup items, scheduled tasks, services
  3. Deploy configuration to endpoints.
  4. Analyze differential results from osquery log output.
  5. Generate security findings report.
python scripts/agent.py --results-dir /var/log/osquery/results/ --output osquery_report.json

Examples

Osquery Scheduled Query

{"schedule": {"process_snapshot": {"query": "SELECT pid, name, path, cmdline, uid FROM processes WHERE on_disk = 0;", "interval": 300}}}