### High-Level Guide Pattern
Source: https://github.com/agentsecops/secopsagentkit/blob/main/CONTRIBUTE.md
Example of keeping core workflows in SKILL.md while offloading detailed configuration to reference files.
```markdown
## Core Workflow
1. Run initial scan
2. Analyze results
3. Generate report
For detailed configuration options, see [references/advanced-config.md](references/advanced-config.md)
For framework mappings, see [references/owasp-mappings.md](references/owasp-mappings.md)
```
--------------------------------
### Install and Run mitmproxy
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/api-mitmproxy/SKILL.md
Basic commands to install mitmproxy and launch its various interfaces.
```bash
# Install via pip
pip install mitmproxy
# Start interactive console proxy
mitmproxy
# Start web interface (default: http://127.0.0.1:8081)
mitmweb
# Start command-line proxy with output
mitmdump -w traffic.flow
```
--------------------------------
### Preventing Dependency Confusion in Package Managers
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/sca-blackduck/references/supply_chain_threats.md
Configuration examples for npm, pip, and Maven to prioritize internal registries and prevent unauthorized public package installation.
```bash
# npm - use scoped packages for internal code
npm config set @company:registry https://npm.internal.company.com
# Configure .npmrc to prefer internal registry
@company:registry=https://npm.internal.company.com
registry=https://registry.npmjs.org
# Python - use index-url for internal PyPI
pip install --index-url https://pypi.internal.company.com package-name
# Maven - repository order matters
company-internal
https://maven.internal.company.com
```
--------------------------------
### Start DefectDojo Locally
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/vuln-defectdojo/SKILL.md
Clones the repository and starts the service using Docker Compose.
```bash
git clone https://github.com/DefectDojo/django-DefectDojo.git
cd django-DefectDojo && docker compose up -d
# Access at http://localhost:8080 — change admin/admin password immediately
```
--------------------------------
### Install and Integrate tfsec
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installation via Homebrew and integration with Reviewdog.
```bash
brew install tfsec
```
```bash
tfsec . --format json | reviewdog -f=tfsec -reporter=github-pr-review
```
--------------------------------
### Manual Linux Installation
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Manually installs the binary and configures a systemd service for Linux.
```bash
# Copy binary and config
sudo cp velociraptor /usr/local/bin/
sudo cp client.config.yaml /etc/velociraptor/
# Create systemd service
sudo cat > /etc/systemd/system/velociraptor-client.service <<'EOF'
[Unit]
Description=Velociraptor DFIR Client
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/velociraptor --config /etc/velociraptor/client.config.yaml client -v
Restart=on-failure
User=root
[Install]
WantedBy=multi-user.target
EOF
# Start service
sudo systemctl enable velociraptor-client
sudo systemctl start velociraptor-client
```
--------------------------------
### Install osquery on Ubuntu/Debian
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/osqueryd-deployment.md
Adds the official osquery repository and installs the package using apt.
```bash
# Add osquery repository
export OSQUERY_KEY=1484120AC4E9F8A1A577AEEE97A80C63C9D8B80B
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $OSQUERY_KEY
# Add repository
sudo add-apt-repository 'deb [arch=amd64] https://pkg.osquery.io/deb deb main'
# Install
sudo apt update
sudo apt install osquery
```
--------------------------------
### Install osquery on macOS
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/osqueryd-deployment.md
Provides options for installing via Homebrew or using the official PKG installer.
```bash
# Using Homebrew
brew install osquery
# Or download official PKG installer
# https://pkg.osquery.io/darwin/osquery-.pkg
```
--------------------------------
### Install and Run Gitleaks
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/SKILL.md
Basic commands for installing Gitleaks and performing initial repository scans.
```bash
# Install gitleaks
brew install gitleaks # macOS
# or: docker pull zricethezav/gitleaks:latest
# Scan current git repository
gitleaks detect -v
# Scan specific directory
gitleaks detect --source /path/to/code -v
# Generate report
gitleaks detect --report-path gitleaks-report.json --report-format json
```
--------------------------------
### Install Gitleaks
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installation commands for Gitleaks via Homebrew or Docker.
```bash
# Via Homebrew
brew install gitleaks
# Via Docker
docker pull zricethezav/gitleaks:latest
```
--------------------------------
### Install git-filter-repo
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/references/remediation_guide.md
Install the git-filter-repo tool via pip.
```bash
pip install git-filter-repo
```
--------------------------------
### Example of renaming a skill
Source: https://github.com/agentsecops/secopsagentkit/blob/main/CONTRIBUTE.md
A complete example demonstrating the renaming process from sca-grype to container-grype.
```bash
# Rename sca-grype to container-grype
mv skills/devsecops/sca-grype skills/devsecops/container-grype
# Update SKILL.md frontmatter: name: container-grype
# Update README.md: [container-grype](skills/devsecops/container-grype/SKILL.md)
# Update marketplace.json: "./devsecops/container-grype"
python3 ./scripts/validate_skill.py skills/devsecops/container-grype
```
--------------------------------
### Install osquery on Windows
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/osqueryd-deployment.md
Uses the MSI installer via PowerShell for silent deployment.
```powershell
# Download MSI installer
# https://pkg.osquery.io/windows/osquery-.msi
# Install via PowerShell
msiexec /i osquery-.msi /quiet
```
--------------------------------
### Install Spectral CLI
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/api-spectral/SKILL.md
Commands to install the Spectral CLI via npm, Yarn, or Docker, and verify the installation.
```bash
# Install via npm
npm install -g @stoplight/spectral-cli
# Or using Yarn
yarn global add @stoplight/spectral-cli
# Or using Docker
docker pull stoplight/spectral
# Verify installation
spectral --version
```
--------------------------------
### Install ffuf via various methods
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/dast-ffuf/SKILL.md
Provides commands to install ffuf using Go, package managers on Debian/Ubuntu and macOS, or by downloading pre-compiled binaries.
```bash
# Using Go
go install github.com/ffuf/ffuf/v2@latest
# Using package managers
# Debian/Ubuntu
apt install ffuf
# macOS
brew install ffuf
# Or download pre-compiled binary from GitHub releases
```
--------------------------------
### Install and Integrate markdownlint
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installs the markdownlint CLI globally and integrates it with Reviewdog for documentation linting.
```bash
npm install -g markdownlint-cli
```
```bash
markdownlint -j . | reviewdog -f=markdownlint -reporter=github-pr-review
```
--------------------------------
### Install and Integrate TruffleHog
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installation via pip and integration with Reviewdog.
```bash
pip install truffleHog
```
```bash
trufflehog --json . | reviewdog -f=trufflehog -reporter=github-pr-review
```
--------------------------------
### Install reviewdog via different methods
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/SKILL.md
Supported installation methods for reviewdog across different environments.
```bash
# Via Go
go install github.com/reviewdog/reviewdog/cmd/reviewdog@latest
# Via Homebrew (macOS/Linux)
brew install reviewdog
# Via Docker
docker pull reviewdog/reviewdog:latest
```
--------------------------------
### Initialize Metasploit Framework
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/pentest-metasploit/SKILL.md
Commands to start the required database service and launch the Metasploit console.
```bash
# Start PostgreSQL database (required for workspace management)
sudo systemctl start postgresql
# Initialize Metasploit database
msfdb init
# Launch Metasploit console
msfconsole
# Verify database connection
msf6 > db_status
```
--------------------------------
### Install Semgrep
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Install the Semgrep CLI tool using pip.
```bash
pip install semgrep
```
--------------------------------
### Install Backend Plugins
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Installs specific backend plugins for SIEM integration or multiple backends simultaneously.
```bash
# Splunk
pip install pysigma-backend-splunk
# Elasticsearch
pip install pysigma-backend-elasticsearch
# Microsoft 365 Defender / Sentinel
pip install pysigma-backend-microsoft365defender
# QRadar
pip install pysigma-backend-qradar
# Multiple backends
pip install pysigma-backend-splunk pysigma-backend-elasticsearch
```
--------------------------------
### Initialize Metasploit for OT
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/ot-security-assessment/SKILL.md
Start the console and search for relevant OT/ICS modules.
```bash
# Start Metasploit Framework console
msfconsole -q
# Search for OT/ICS modules
msf6 > search modbus
msf6 > search scada
msf6 > search siemens
```
--------------------------------
### Install and Run Basic Trivy Scans
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/sca-trivy/SKILL.md
Commands for installing Trivy and performing initial scans on images, filesystems, and configurations.
```bash
# Install Trivy
brew install trivy # macOS
# or: apt-get install trivy # Debian/Ubuntu
# or: docker pull aquasec/trivy:latest
# Scan container image
trivy image nginx:latest
# Scan local filesystem for dependencies
trivy fs .
# Scan IaC files for misconfigurations
trivy config .
# Generate SBOM
trivy image --format cyclonedx --output sbom.json nginx:latest
```
--------------------------------
### Execute Tool Command
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/_template/SKILL.md
Minimal command example to initiate the tool workflow.
```bash
# Example command or workflow
tool-name --option value
```
--------------------------------
### Install Pre-commit Hooks
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/sast-bandit/SKILL.md
Command to initialize pre-commit hooks in the local environment.
```bash
pre-commit install
```
--------------------------------
### Client Configuration Options
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Example configuration file for tuning client connection, performance, and state file paths.
```yaml
# client.config.yaml
Client:
server_urls:
- https://velociraptor.company.com:8000/
# Connection tuning
max_poll: 60 # Max seconds between polls
max_poll_std: 10 # Jitter to prevent thundering herd
# Performance
max_upload_size: 104857600 # 100MB
cpu_limit: 80 # CPU usage percentage limit
progress_timeout: 3600 # Query timeout
# Writeback file (client state)
writeback_linux: /etc/velociraptor/writeback.yaml
writeback_windows: C:\Program Files\Velociraptor\writeback.yaml
```
--------------------------------
### Install pySigma QRadar Backend
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Install the required Python package for QRadar backend support.
```bash
pip install pysigma-backend-qradar
```
--------------------------------
### Install OPA
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/compliance/policy-opa/SKILL.md
Commands to install OPA on macOS and Linux, followed by a version verification step.
```bash
# macOS
brew install opa
# Linux
curl -L -o opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64
chmod +x opa
# Verify installation
opa version
```
--------------------------------
### Install and Integrate Terrascan
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installation via Homebrew and integration with Reviewdog.
```bash
brew install terrascan
```
```bash
terrascan scan -o json | reviewdog -f=terrascan -reporter=github-pr-review
```
--------------------------------
### Install Horusec CLI
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/sast-horusec/SKILL.md
Provides installation commands for various operating systems.
```bash
# macOS
brew install horusec
# Linux
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/main/deployments/scripts/install.sh | bash
# Windows
# Download from GitHub releases
```
--------------------------------
### Install Hadolint
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/container-hadolint/SKILL.md
Commands to install Hadolint on macOS, Linux, or via Docker.
```bash
# macOS via Homebrew
brew install hadolint
# Linux via binary
wget -O /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64
chmod +x /usr/local/bin/hadolint
# Via Docker
docker pull hadolint/hadolint
```
--------------------------------
### Install Bandit
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/sast-bandit/SKILL.md
Install the Bandit security scanner using pip.
```bash
pip install bandit
```
--------------------------------
### Install BFG Repo-Cleaner
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/references/remediation_guide.md
Install BFG via Homebrew on macOS.
```bash
# macOS
brew install bfg
# Or download JAR from https://rtyley.github.io/bfg-repo-cleaner/
```
--------------------------------
### Sentinel Output Format Example
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Example KQL query generated for a PowerShell detection rule.
```kql
SecurityEvent
| where EventID == 4688
| where ProcessName endswith "\\powershell.exe"
| where CommandLine contains "-enc" or CommandLine contains "-EncodedCommand"
```
--------------------------------
### Combine update and install instructions
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/container-hadolint/references/security_rules.md
Perform package updates and installations in the same RUN instruction to avoid cache-related issues.
```dockerfile
# Bad
RUN apt-get update
RUN apt-get install -y package
# Good
RUN apt-get update && \
apt-get install -y package && \
rm -rf /var/lib/apt/lists/*
```
--------------------------------
### Install osquery on RHEL/CentOS
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/osqueryd-deployment.md
Configures the GPG key and repository for RHEL-based systems before installing via yum.
```bash
# Add osquery repository
curl -L https://pkg.osquery.io/rpm/GPG | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-osquery
# Add repository
sudo yum-config-manager --add-repo https://pkg.osquery.io/rpm/osquery-s3-rpm.repo
# Install
sudo yum install osquery
```
--------------------------------
### QRadar Output Format Example
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Example AQL query generated for a PowerShell detection rule.
```sql
SELECT * FROM events WHERE LOGSOURCETYPENAME(devicetype) = 'Microsoft Windows Security Event Log'
AND "EventID" = '4688'
AND "Image" ILIKE '%\\powershell.exe'
```
--------------------------------
### Configure Shared Datastore
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Setup instructions for NFS shared storage and configuration for S3 datastore implementation.
```bash
# On NFS server
sudo apt install nfs-kernel-server
sudo mkdir -p /export/velociraptor
sudo chown nobody:nogroup /export/velociraptor
# /etc/exports
/export/velociraptor 10.0.1.0/24(rw,sync,no_subtree_check,no_root_squash)
# On Velociraptor servers
sudo mount -t nfs nfs-server:/export/velociraptor /var/lib/velociraptor
```
```yaml
# server.config.yaml
Datastore:
implementation: S3DataStore
s3_bucket: velociraptor-datastore
s3_region: us-east-1
credentials_file: /etc/velociraptor/aws-credentials
```
--------------------------------
### Install and Run DNP3 Enumeration
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/ot-security-assessment/SKILL.md
Download the dnp3-info script and run it against port 20000.
```bash
# Download dnp3-info.nse from the official Nmap community scripts repo
curl -o /usr/local/share/nmap/scripts/dnp3-info.nse \
https://raw.githubusercontent.com/nmap/nmap/master/scripts/dnp3-info.nse
# Update Nmap script database
nmap --script-updatedb
# Verify script is available
nmap --script-help dnp3-info
# Run DNP3 enumeration
nmap -p 20000 --script dnp3-info -oA dnp3_info
```
--------------------------------
### Install and Integrate yamllint
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installs yamllint via pip and pipes its parsable output to Reviewdog.
```bash
pip install yamllint
```
```bash
yamllint -f parsable . | reviewdog -f=yamllint -reporter=github-pr-review
```
--------------------------------
### Generate MSI Installer for Windows
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Creates an MSI installer for Windows deployment via GPO, SCCM, or Intune.
```bash
# Generate MSI installer
velociraptor --config /etc/velociraptor/server.config.yaml \
config msi --binary velociraptor.exe \
--output VelociraptorClient.msi
# Deploy via GPO, SCCM, or Intune
# Silent install: msiexec /i VelociraptorClient.msi /quiet
```
--------------------------------
### Install ESLint Security Plugins
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Install ESLint along with security-focused plugins via npm.
```bash
npm install -D eslint eslint-plugin-security eslint-plugin-no-secrets
```
--------------------------------
### Install pytm and dependencies
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/threatmodel/pytm/SKILL.md
Installs the pytm package and the required graphviz system dependency for diagram generation.
```bash
pip install pytm
# Also requires graphviz for diagram generation
brew install graphviz # macOS
# or: apt-get install graphviz # Linux
```
--------------------------------
### Install Core pySigma
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Installs the base pySigma library required for rule processing.
```bash
pip install pysigma
```
--------------------------------
### Custom Rule Examples
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/sast-semgrep/references/rule_library.md
Practical examples of custom rules for detecting common security vulnerabilities.
```yaml
rules:
- id: hardcoded-aws-key
patterns:
- pattern-regex: 'AKIA[0-9A-Z]{16}'
message: Hard-coded AWS access key detected
severity: ERROR
languages: [python, javascript, java, go]
metadata:
category: security
cwe: "CWE-798"
confidence: HIGH
```
```yaml
rules:
- id: unsafe-file-read
patterns:
- pattern: open($PATH, ...)
- pattern-inside: |
def $FUNC(..., $USER_INPUT, ...):
...
$PATH = ... + $USER_INPUT + ...
...
message: File path constructed from user input (path traversal risk)
severity: WARNING
languages: [python]
metadata:
cwe: "CWE-22"
owasp: "A01:2021-Broken-Access-Control"
```
```yaml
rules:
- id: flask-missing-csrf
patterns:
- pattern: |
@app.route($PATH, methods=[..., "POST", ...])
def $FUNC(...):
...
- pattern-not-inside: |
@csrf.exempt
...
- pattern-not-inside: |
csrf_token = ...
...
message: POST route without CSRF protection
severity: ERROR
languages: [python]
metadata:
cwe: "CWE-352"
owasp: "A01:2021-Broken-Access-Control"
```
```yaml
rules:
- id: insecure-random-for-crypto
patterns:
- pattern-either:
- pattern: random.random()
- pattern: random.randint(...)
- pattern-inside: |
def ..._token(...):
...
message: Using insecure random for security token
severity: ERROR
languages: [python]
metadata:
cwe: "CWE-330"
fix: "Use secrets module: secrets.token_bytes(32)"
```
--------------------------------
### Manual Windows Installation
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Manually installs the Velociraptor binary and registers it as a Windows service.
```powershell
# Copy binary and config
Copy-Item velociraptor.exe C:\Program Files\Velociraptor\
Copy-Item client.config.yaml C:\Program Files\Velociraptor\
# Install as service
& "C:\Program Files\Velociraptor\velociraptor.exe" `
--config "C:\Program Files\Velociraptor\client.config.yaml" `
service install
# Start service
Start-Service Velociraptor
```
--------------------------------
### Sign and Verify SBOM Attestations
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/sbom-syft/SKILL.md
Install Cosign, generate an SBOM, and create or verify a signed attestation.
```bash
# macOS
brew install cosign
# Linux
wget https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64
chmod +x cosign-linux-amd64
mv cosign-linux-amd64 /usr/local/bin/cosign
```
```bash
syft -o cyclonedx-json=sbom.json
```
```bash
cosign attest --predicate sbom.json --type cyclonedx
```
```bash
cosign verify-attestation --type cyclonedx
```
--------------------------------
### Install Checkov
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/iac-checkov/SKILL.md
Provides commands to install Checkov using common package managers or Docker.
```bash
# Via pip
pip install checkov
# Via Homebrew (macOS)
brew install checkov
# Via Docker
docker pull bridgecrew/checkov
```
--------------------------------
### Configure Developer Workstation
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/SKILL.md
Install Gitleaks and pre-commit hooks to prevent accidental secret commits locally.
```bash
# 1. Install gitleaks locally
brew install gitleaks # macOS
# or use package manager for your OS
# 2. Install pre-commit hook
./scripts/install_precommit.sh
# 3. Test hook with dummy commit
echo "api_key = 'EXAMPLE_KEY_12345'" > test.txt
git add test.txt
git commit -m "test" # Should be blocked by gitleaks
# 4. Clean up test
git reset HEAD~1
rm test.txt
```
--------------------------------
### Install and Integrate Trivy
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installs the Trivy scanner and provides various integration commands for container, filesystem, and Kubernetes scanning.
```bash
brew install trivy
```
```bash
trivy fs --format json . | reviewdog -f=trivy -reporter=github-pr-review
```
```bash
# Container images
trivy image --format json myimage:tag | reviewdog -f=trivy
# Filesystem
trivy fs --security-checks vuln,secret --format json . | reviewdog -f=trivy
# Kubernetes manifests
trivy k8s --report=summary --format json | reviewdog -f=trivy
```
--------------------------------
### Install and Integrate Checkov
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installation via pip and integration with Reviewdog, including severity filtering.
```bash
pip install checkov
```
```bash
checkov -d . -o json | reviewdog -f=checkov -reporter=github-pr-review
```
```bash
# Only critical/high
checkov -d . --severity CRITICAL,HIGH -o json | reviewdog -f=checkov
```
--------------------------------
### Install pySigma Splunk Backend
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Install the required Python package for Splunk backend support.
```bash
pip install pysigma-backend-splunk
```
--------------------------------
### Minimize package installation
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/container-hadolint/references/security_rules.md
Use --no-install-recommends and pin package versions to reduce the attack surface.
```dockerfile
# Use --no-install-recommends
RUN apt-get update && \
apt-get install -y --no-install-recommends \
package1=version1 \
package2=version2 && \
rm -rf /var/lib/apt/lists/*
```
--------------------------------
### Install pySigma Microsoft Sentinel Backend
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Install the required Python package for Microsoft Sentinel backend support.
```bash
pip install pysigma-backend-microsoft365defender
```
--------------------------------
### Optimize SQL queries
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/osqueryd-deployment.md
Examples of efficient SQL query patterns for osquery.
```sql
-- Bad: SELECT * FROM file;
-- Good: SELECT * FROM file WHERE path LIKE '/etc/%';
```
```sql
SELECT * FROM processes ORDER BY start_time DESC LIMIT 100;
```
--------------------------------
### Configure Gitleaks
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Example configuration for Gitleaks using a TOML file to extend default rules.
```toml
[extend]
useDefault = true
[[rules]]
id = "custom-api-key"
description = "Custom API Key Pattern"
regex = '''(?i)api[_-]?key[_-]?=.{20,}'''
```
--------------------------------
### Install Git Hooks
Source: https://github.com/agentsecops/secopsagentkit/blob/main/CONTRIBUTE.md
Run this script once to enable automatic validation of your contributions.
```bash
./scripts/install_hooks.sh
```
--------------------------------
### Install Sigma Dependencies
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/SKILL.md
Install the necessary Python packages for Sigma rule processing and backend conversion.
```bash
pip install pysigma pysigma-backend-splunk pysigma-backend-elasticsearch pyyaml
```
--------------------------------
### Verify and Test pytm Installation
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/threatmodel/pytm/SKILL.md
Commands to verify Graphviz installation and perform a basic functional test of the pytm library.
```bash
# Verify graphviz installation
dot -V
# Install graphviz if missing
brew install graphviz # macOS
sudo apt-get install graphviz # Linux
# Test pytm with simple model
python -c "from pytm import TM; tm = TM('test'); tm.process()"
```
--------------------------------
### Install SecOpsAgentKit plugin
Source: https://github.com/agentsecops/secopsagentkit/blob/main/README.md
Use this command to add the SecOpsAgentKit repository to your Claude Code marketplace.
```bash
/plugin marketplace add https://github.com/AgentSecOps/SecOpsAgentKit.git
```
--------------------------------
### Define Custom Configuration
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/SKILL.md
Example TOML configuration for defining custom rules and global allowlists.
```toml
title = "Custom Gitleaks Configuration"
[extend]
# Extend default config with custom rules
useDefault = true
[[rules]]
id = "custom-api-key"
description = "Custom API Key Pattern"
regex = '''(?i)(custom_api_key|custom_secret)[\s]*[=:][\s]*['"][a-zA-Z0-9]{32,}['"]'''
tags = ["api-key", "custom"]
[allowlist]
description = "Global allowlist"
paths = [
'''\.md$''', # Ignore markdown files
'''test/fixtures/''', # Ignore test fixtures
]
stopwords = [
'''EXAMPLE''', # Ignore example keys
'''PLACEHOLDER''',
]
```
--------------------------------
### Inventory Installed Packages and Applications
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/platform-differences.md
Query installed software inventory using package manager tables or application registry tables.
```sql
SELECT name, version, install_time
FROM deb_packages
ORDER BY install_time DESC;
```
```sql
SELECT name, version, install_time
FROM rpm_packages
ORDER BY install_time DESC;
```
```sql
SELECT name, path, bundle_version, last_opened_time
FROM apps
ORDER BY last_opened_time DESC;
```
```sql
SELECT name, version, install_location, install_date
FROM programs
ORDER BY install_date DESC;
```
--------------------------------
### Execute compliance report generation
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/references/compliance_mapping.md
Command-line examples for generating reports for specific compliance frameworks.
```bash
# Generate PCI-DSS specific report
./compliance_report.py gitleaks-findings.json PCI-DSS > pci-dss-report.json
# Generate SOC2 specific report
./compliance_report.py gitleaks-findings.json SOC2 > soc2-report.json
```
--------------------------------
### Use Python constraints files
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/container-grype/references/vulnerability_remediation.md
Enforce specific package versions during installation to mitigate vulnerabilities.
```bash
# constraints.txt
vulnerable-package>=1.2.3 # CVE-2024-XXXX fixed
# Install with constraints
pip install -r requirements.txt -c constraints.txt
```
--------------------------------
### Query Windows auto-start services
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/table-guide.md
List services configured to start automatically on Windows.
```sql
-- Auto-start services
SELECT name, display_name, path, user_account
FROM services
WHERE start_type = 'AUTO_START';
```
--------------------------------
### Configure Pre-Commit Hooks
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/SKILL.md
Setup instructions for preventing secrets from being committed to the repository.
```bash
# Install pre-commit hook (run in repository root)
cat << 'EOF' > .git/hooks/pre-commit
#!/bin/sh
gitleaks protect --verbose --redact --staged
EOF
chmod +x .git/hooks/pre-commit
```
```bash
./scripts/install_precommit.sh
```
--------------------------------
### Review System Configuration
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/SKILL.md
Queries for inspecting kernel parameters, installed software packages, and general system identification.
```sql
-- Kernel configuration and parameters (Linux)
SELECT name, value FROM kernel_info;
SELECT path, key, value FROM sysctl WHERE key LIKE 'kernel.%';
-- Installed packages (detect unauthorized software)
SELECT name, version, install_time FROM deb_packages ORDER BY install_time DESC LIMIT 20; -- Debian/Ubuntu
SELECT name, version, install_time FROM rpm_packages ORDER BY install_time DESC LIMIT 20; -- RHEL/CentOS
-- System information
SELECT hostname, computer_name, local_hostname FROM system_info;
```
--------------------------------
### Integrate with CI/CD Pipelines
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/SKILL.md
Configuration examples for automating Gitleaks scans in GitHub Actions and GitLab CI.
```yaml
name: gitleaks
on: [push, pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
```yaml
gitleaks:
image: zricethezav/gitleaks:latest
stage: test
script:
- gitleaks detect --report-path gitleaks.json --report-format json --verbose
artifacts:
paths:
- gitleaks.json
when: always
allow_failure: false
```
--------------------------------
### Troubleshoot Interface Detection
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/analysis-tshark/SKILL.md
Commands to verify Tshark installation and list available network interfaces.
```bash
# Verify tshark installation
tshark --version
# List interfaces with sudo
sudo tshark -D
# Check interface status
ip link show
ifconfig -a
```
--------------------------------
### Install dnp3-info NSE Script
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/ot-security-assessment/SKILL.md
Download and update the Nmap database to include the dnp3-info script.
```bash
curl -o /usr/local/share/nmap/scripts/dnp3-info.nse \
https://raw.githubusercontent.com/nmap/nmap/master/scripts/dnp3-info.nse
nmap --script-updatedb
```
--------------------------------
### Minimal Gitleaks Configuration
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/secrets-gitleaks/references/false_positives.md
Use this broad allowlist configuration for initial rollout to minimize noise.
```toml
title = "Minimal Gitleaks Configuration"
[extend]
useDefault = true # Use all built-in rules
[allowlist]
description = "Broad allowlist for initial rollout"
paths = [
'''test/.*''',
'''.*\.md$''',
'''vendor/.*''',
'''node_modules/.*''',
]
stopwords = [
"example",
"test",
"mock",
"dummy",
]
```
--------------------------------
### Start Interactive API Inspection
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/api-mitmproxy/SKILL.md
Commands to launch mitmproxy or mitmweb in regular proxy mode for manual inspection.
```bash
# Console interface
mitmproxy --mode regular --listen-host 0.0.0.0 --listen-port 8080
# Or web interface
mitmweb --mode regular --listen-host 0.0.0.0 --listen-port 8080
```
--------------------------------
### Execute Component Replacement
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/sca-blackduck/references/remediation_strategies.md
Standard workflow for removing a vulnerable package and installing a secure alternative.
```bash
# Remove vulnerable component
npm uninstall vulnerable-package
# Install replacement
npm install secure-alternative
# Update imports/requires across codebase
# Use tools like jscodeshift for automated refactoring
```
--------------------------------
### Download and Install Velociraptor Binary
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Downloads the Linux binary and moves it to the system path for execution.
```bash
# Linux
wget https://github.com/Velocidex/velociraptor/releases/download/v0.72/velociraptor-v0.72.3-linux-amd64
# Make executable
chmod +x velociraptor-v0.72.3-linux-amd64
sudo mv velociraptor-v0.72.3-linux-amd64 /usr/local/bin/velociraptor
```
--------------------------------
### Access Web Interface
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Access the GUI via the configured URL.
```bash
# Access GUI at: https://velociraptor.company.com:8889/
# Login with admin credentials created above
```
--------------------------------
### Basic Osquery Configuration
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/osqueryd-deployment.md
A standard configuration template defining logging, scheduling, and external pack integration.
```json
{
"options": {
"config_plugin": "filesystem",
"logger_plugin": "filesystem",
"logger_path": "/var/log/osquery",
"disable_logging": false,
"log_result_events": true,
"schedule_splay_percent": 10,
"pidfile": "/var/osquery/osquery.pidfile",
"events_expiry": 3600,
"database_path": "/var/osquery/osquery.db",
"verbose": false,
"worker_threads": 2,
"enable_monitor": true,
"disable_events": false,
"disable_audit": false,
"audit_allow_config": true,
"audit_allow_sockets": true,
"host_identifier": "hostname",
"enable_syslog": false,
"syslog_pipe_path": "/var/osquery/syslog_pipe"
},
"schedule": {
"system_info": {
"query": "SELECT * FROM system_info;",
"interval": 3600,
"description": "Collect system information hourly"
},
"running_processes": {
"query": "SELECT pid, name, path, cmdline, uid FROM processes;",
"interval": 300,
"description": "Monitor running processes every 5 minutes"
},
"network_connections": {
"query": "SELECT p.name, p.cmdline, ps.remote_address, ps.remote_port FROM processes p JOIN process_open_sockets ps ON p.pid = ps.pid WHERE ps.remote_address NOT IN ('127.0.0.1', '::1');",
"interval": 600,
"description": "Monitor network connections every 10 minutes"
}
},
"packs": {
"incident-response": "/etc/osquery/packs/ir-triage.conf",
"ossec-rootkit": "/usr/share/osquery/packs/ossec-rootkit.conf"
}
}
```
--------------------------------
### Setup vulnerable test lab
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/dast-nuclei/references/template_development.md
Deploy common vulnerable applications using Docker for testing security templates.
```bash
# Use DVWA (Damn Vulnerable Web Application)
docker run -d -p 80:80 vulnerables/web-dvwa
# Or OWASP Juice Shop
docker run -d -p 3000:3000 bkimminich/juice-shop
```
--------------------------------
### Generate Client Configuration
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Creates a client configuration file from an existing server configuration.
```bash
# Generate client config from server config
velociraptor --config /etc/velociraptor/server.config.yaml \
config client > /tmp/client.config.yaml
```
--------------------------------
### Query macOS startup items
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/table-guide.md
Retrieve information about macOS startup items.
```sql
-- macOS startup items
SELECT name, path, type, source FROM startup_items;
```
--------------------------------
### Map Rules to Multiple Frameworks
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/compliance-mappings.md
Example of a rule configuration containing multiple compliance and MITRE ATT&CK tags.
```yaml
title: Failed Authentication Monitoring
tags:
- attack.credential_access
- attack.t1110
- pci-dss.10.2.4
- pci-dss.10.2.5
- nist-800-53.au-2
- nist-800-53.au-12
- nist-800-53.ia-2
- iso27001.a.12.4.1
- iso27001.a.9.2.1
```
--------------------------------
### Initialize a New Skill
Source: https://github.com/agentsecops/secopsagentkit/blob/main/README.md
Use this script to create a new skill directory structure from the base template.
```bash
./scripts/init_skill.sh my-skill-name appsec
```
--------------------------------
### Install pySigma Elasticsearch Backend
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Install the required Python package for Elasticsearch backend support.
```bash
pip install pysigma-backend-elasticsearch
```
--------------------------------
### Basic ffuf Discovery Commands
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/dast-ffuf/SKILL.md
Fundamental commands for directory, file, and virtual host discovery.
```bash
# Directory discovery
ffuf -u https://example.com/FUZZ -w /usr/share/wordlists/dirb/common.txt
# File discovery with extension
ffuf -u https://example.com/FUZZ -w wordlist.txt -e .php,.html,.txt
# Virtual host discovery
ffuf -u https://example.com -H "Host: FUZZ.example.com" -w subdomains.txt
```
--------------------------------
### EQL Output Format Example
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Example EQL query generated for a PowerShell detection rule.
```eql
process where process.name == "powershell.exe" and
(process.command_line like~ "*-enc*" or
process.command_line like~ "*-EncodedCommand*")
```
--------------------------------
### Manage file size limits
Source: https://github.com/agentsecops/secopsagentkit/blob/main/CONTRIBUTE.md
Keep SKILL.md under 500 lines by splitting content into reference files.
```markdown
SKILL.md with 700 lines of content
SKILL.md (350 lines) + references/advanced-topics.md (350 lines)
```
--------------------------------
### Select Minimal Base Images
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/container-grype/references/vulnerability_remediation.md
Examples of choosing minimal base images to reduce the attack surface of containerized applications.
```dockerfile
# ❌ Large attack surface
FROM ubuntu:22.04
# ✅ Minimal attack surface
FROM alpine:3.19
# or
FROM gcr.io/distroless/base-debian12
# ✅ Minimal for specific language
FROM python:3.11-slim
FROM node:20-alpine
```
--------------------------------
### Splunk Output Format Example
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Example SPL query generated for a PowerShell detection rule.
```spl
index=windows EventID=4688 Image="*\powershell.exe" CommandLine IN ("*-enc*", "*-EncodedCommand*", "*FromBase64String*")
```
--------------------------------
### Server Configuration File Structure
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/deployment-guide.md
Example YAML configuration for the Velociraptor server, including API, GUI, and Datastore settings.
```yaml
# server.config.yaml
version:
name: velociraptor
version: "0.72"
Client:
server_urls:
- https://velociraptor.company.com:8000/
ca_certificate: |
-----BEGIN CERTIFICATE-----
[CA cert]
-----END CERTIFICATE-----
API:
bind_address: 0.0.0.0
bind_port: 8001
bind_scheme: tcp
GUI:
bind_address: 0.0.0.0
bind_port: 8889
use_plain_http: false
internal_cidr:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
Frontend:
hostname: velociraptor.company.com
bind_address: 0.0.0.0
bind_port: 8000
Datastore:
implementation: FileBaseDataStore
location: /var/lib/velociraptor
filestore_directory: /var/lib/velociraptor
```
--------------------------------
### Enumerate Database Structure
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/webapp-sqlmap/SKILL.md
Use these commands to list databases, tables, columns, users, and privileges.
```bash
# List databases
sqlmap -u "http://example.com/page?id=1" --dbs
# Current database
sqlmap -u "http://example.com/page?id=1" --current-db
# List tables in database
sqlmap -u "http://example.com/page?id=1" -D database_name --tables
# List columns in table
sqlmap -u "http://example.com/page?id=1" -D database_name -T users --columns
# Database users
sqlmap -u "http://example.com/page?id=1" --users
# Database user privileges
sqlmap -u "http://example.com/page?id=1" --privileges
```
--------------------------------
### Install and Integrate ShellCheck
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installs ShellCheck and integrates it with Reviewdog to analyze shell scripts for security issues.
```bash
brew install shellcheck
```
```bash
shellcheck -f json script.sh | reviewdog -f=shellcheck -reporter=github-pr-review
```
--------------------------------
### List Supported Checkov Frameworks
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/devsecops/iac-checkov/SKILL.md
Displays all infrastructure frameworks currently supported by the Checkov CLI.
```bash
# Supported frameworks
checkov --list-frameworks
# Output:
# terraform, cloudformation, kubernetes, dockerfile, helm,
# serverless, arm, secrets, ansible, github_actions, gitlab_ci
```
--------------------------------
### Elasticsearch Output Format Example
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/detection-sigma/references/backend-support.md
Example JSON Query DSL generated for a PowerShell detection rule.
```json
{
"query": {
"bool": {
"must": [
{"wildcard": {"Image": "*\\powershell.exe"}},
{"terms": {"CommandLine": ["-enc", "-EncodedCommand"]}}
]
}
}
}
```
--------------------------------
### Hunt for persistence mechanisms using VQL
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/ir-velociraptor/references/vql-patterns.md
Aggregates results from registry run keys, scheduled tasks, services, and startup folders to identify potential persistence.
```sql
-- Multi-vector persistence detection
LET RegistryAutoRuns = SELECT "Registry" AS Method, Key.FullPath AS Location, ValueData.value AS Value
FROM read_reg_key(globs="HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run/*")
LET ScheduledTasks = SELECT "Scheduled Task" AS Method, FullPath AS Location, "" AS Value
FROM glob(globs="C:/Windows/System32/Tasks/**")
WHERE NOT IsDir
LET Services = SELECT "Service" AS Method, Key.Name AS Location, ImagePath.value AS Value
FROM read_reg_key(globs="HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/**/ImagePath")
LET StartupFolders = SELECT "Startup Folder" AS Method, FullPath AS Location, "" AS Value
FROM glob(globs=[
"C:/Users/*/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/*",
"C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Startup/*"
])
SELECT * FROM chain(
a=RegistryAutoRuns,
b=ScheduledTasks,
c=Services,
d=StartupFolders
)
```
--------------------------------
### Install and Integrate Hadolint
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/secsdlc/reviewdog/references/supported_tools.md
Installs the Dockerfile linter and pipes its JSON output to Reviewdog for GitHub PR reporting.
```bash
brew install hadolint
```
```bash
hadolint Dockerfile --format json | reviewdog -f=hadolint -reporter=github-pr-review
```
--------------------------------
### Basic SQLMap Execution Commands
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/webapp-sqlmap/SKILL.md
Common commands for testing parameters, POST data, request files, and database enumeration.
```bash
# Test single parameter
sqlmap -u "http://example.com/page?id=1"
# Test with POST data
sqlmap -u "http://example.com/login" --data="username=admin&password=test"
# Test from saved request file
sqlmap -r request.txt
# Detect and enumerate databases
sqlmap -u "http://example.com/page?id=1" --dbs
```
--------------------------------
### Dependency Vetting Checklist
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/sca-blackduck/references/supply_chain_threats.md
A markdown-formatted checklist for evaluating new dependencies before integration.
```markdown
# Dependency Vetting Checklist
- [ ] Active maintenance (commits within 3 months)
- [ ] Sufficient adoption (downloads, GitHub stars)
- [ ] Code repository available and reviewed
- [ ] Recent security audit or assessment
- [ ] Compatible license
- [ ] Minimal transitive dependencies
- [ ] No known vulnerabilities (Black Duck scan)
- [ ] Maintainer reputation verified
- [ ] Reasonable package size
- [ ] Documentation quality adequate
```
--------------------------------
### Install and Update Nuclei
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/dast-nuclei/SKILL.md
Commands to install Nuclei via Go or Docker and update the community template library.
```bash
# Install via Go
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
# Or using Docker
docker pull projectdiscovery/nuclei:latest
# Update templates (automatically downloads 7000+ community templates)
nuclei -update-templates
```
--------------------------------
### Model Cloud Native Microservices
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/threatmodel/pytm/SKILL.md
Demonstrates modeling serverless functions and managed cloud services within a defined VPC boundary.
```python
from pytm import TM, Lambda, Datastore, Dataflow, Boundary, Actor
tm = TM("Cloud Microservices")
cloud = Boundary("Cloud Provider VPC")
user = Actor("Mobile App")
# Serverless functions
api_gateway = Lambda("API Gateway")
api_gateway.inBoundary = cloud
api_gateway.implementsAPI = True
auth_fn = Lambda("Auth Function")
auth_fn.inBoundary = cloud
# Managed services
cache = Datastore("Redis Cache")
cache.inBoundary = cloud
cache.isEncrypted = True
db = Datastore("DynamoDB")
db.inBoundary = cloud
db.isEncryptedAtRest = True
# Data flows
Dataflow(user, api_gateway, "API Call").protocol = "HTTPS"
Dataflow(api_gateway, auth_fn, "Auth").protocol = "internal"
Dataflow(auth_fn, cache, "Session").isEncrypted = True
Dataflow(api_gateway, db, "Query").isEncrypted = True
tm.process()
```
--------------------------------
### Identify SQL Injection via GET Parameters
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/webapp-sqlmap/SKILL.md
Use these commands to test various GET parameters for SQL injection vulnerabilities.
```bash
# Single URL with parameter
sqlmap -u "http://example.com/product?id=1"
# Multiple parameters
sqlmap -u "http://example.com/search?query=test&category=all&sort=name"
# Test all parameters
sqlmap -u "http://example.com/page?id=1&name=test" --level=5 --risk=3
```
--------------------------------
### Quick Start OT Discovery
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/ot-security-assessment/SKILL.md
Basic Nmap commands for discovering OT devices and enumerating common protocols without requiring root privileges.
```bash
# TCP Connect scan for common OT ports (no root required, safer for OT)
nmap -sT -p 502,102,2404,20000,47808,2222
# Modbus enumeration (no root required)
nmap -p 502 --script modbus-read-registers,modbus-read-coils
# Comprehensive OT scan with service detection (no root required)
nmap -sV -p 502,102,2404,20000,47808,2222 --script modbus-read-registers,s7-info,bacnet-info
```
--------------------------------
### Monitor Package Installation Behavior
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/appsec/sca-blackduck/references/supply_chain_threats.md
Uses strace to monitor network, process, and file system activity during npm installation, filtering out traffic to standard registries.
```bash
#!/bin/bash
# Monitor package installation for suspicious behavior
strace -f -e trace=network,process,file npm install suspicious-package 2>&1 | \
grep -E "(connect|sendto|execve|openat)" | \
grep -v "npmjs.org\|yarnpkg.com" # Exclude legitimate registries
# Any network activity to non-registry domains during install is suspicious
```
--------------------------------
### Query Firefox Add-ons
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/incident-response/forensics-osquery/references/table-guide.md
Retrieves details of installed Firefox browser add-ons.
```sql
-- Installed Firefox add-ons
SELECT name, version, description, source_url FROM firefox_addons;
```
--------------------------------
### Prepare Hash Files
Source: https://github.com/agentsecops/secopsagentkit/blob/main/skills/offsec/crack-hashcat/SKILL.md
Methods for creating and formatting hash files for Hashcat, including handling usernames, salts, and system-specific exports.
```bash
# Simple hash file (one hash per line)
echo "5f4dcc3b5aa765d61d8327deb882cf99" > hashes.txt
# Hash with username (username:hash format)
cat > hashes.txt < hashes.txt
# From /etc/shadow (Linux)
sudo cat /etc/shadow | grep -v "^#" | grep -v ":*:" | grep -v ":!:" > shadow_hashes.txt
# From NTDS.dit (Active Directory)
secretsdump.py -ntds ntds.dit -system SYSTEM -hashes lmhash:nthash LOCAL > ad_hashes.txt
```