Release 0.17.2 · 104 packs · 1,196 blocking rules
Every pack, every rule.
A pack is a set of rules for one tool or area. Three are on in a fresh install: core.git, core.filesystem and system.disk. Turn on any other by adding its ID, or a whole category, to [packs] enabled in ~/.config/dcg/config.toml.
Matching rules
Core2
- Core FilesystemAlways on
core.filesystemProtects against recursive rm commands and equivalent filesystem destruction outside literal temp subdirectories39 blocking · 39 safe - Core GitAlways on
core.gitProtects against destructive git commands that can lose uncommitted work, rewrite history, or destroy stashes28 blocking · 7 safe
System4
- Disk OperationsOn by default
system.diskProtects against destructive disk operations like dd to devices, mkfs, partition table modifications, RAID management, btrfs/LVM/device-mapper operations, network block devices, and macOS diskutil erase/partition/APFS deletion59 blocking · 19 safe - Permissions
system.permissionsProtects against dangerous permission changes like chmod 777, recursive chmod/chown on system directories11 blocking · 4 safe - Processes
system.processesProtects shared machines against kills that pick their targets by pattern, parent-tree walk or broadcast: pkill, killall, kill -1, pgrep/lsof/ps-fed kill loops, xargs/find kills, remote pattern kills over ssh, interpreter broadcast kills and launchctl domain bootouts (opt-in)10 blocking · 0 safe - Services
system.servicesProtects against dangerous service operations like stopping critical services and modifying init configuration11 blocking · 7 safe
Databases9
- BigQuery
database.bigqueryProtects the `bq` CLI and GoogleSQL against dataset drops, table overwrites, unfiltered DML, and settings that shorten the time-travel recovery window32 blocking · 0 safe - Databricks CLI
database.databricksProtects against destructive Databricks CLI operations like account workspaces delete, bundle destroy, recursive workspace/fs deletion, permanent cluster deletion, secret-scope removal, arbitrary REST DELETE calls, and high-impact resource deletes19 blocking · 0 safe - MongoDB
database.mongodbProtects against destructive MongoDB operations like dropDatabase, dropCollection, and remove without criteria7 blocking · 5 safe - MySQL/MariaDB
database.mysqlProtects against destructive MySQL/MariaDB operations like DROP DATABASE, TRUNCATE, and mysqladmin drop13 blocking · 5 safe - PostgreSQL
database.postgresqlProtects against destructive PostgreSQL operations like DROP DATABASE, TRUNCATE, and dropdb10 blocking · 2 safe - Redis
database.redisProtects against destructive Redis operations like FLUSHALL, FLUSHDB, and mass key deletion14 blocking · 6 safe - Snowflake CLI
database.snowflakeProtects modern `snow sql` queries, files, stdin, nested sources, data, ingestion, compute, and account privileges51 blocking · 0 safe - SQLite
database.sqliteProtects against destructive SQLite operations like DROP TABLE, DELETE without WHERE, and accidental data loss7 blocking · 4 safe - Supabase
database.supabaseProtects against destructive Supabase CLI operations including database resets, migration rollbacks, function/secret/storage deletion, project removal, and infrastructure changes18 blocking · 35 safe
Kubernetes3
- Helm
kubernetes.helmProtects against destructive Helm operations like uninstall and rollback without dry-run4 blocking · 12 safe - kubectl
kubernetes.kubectlProtects against destructive kubectl operations like delete namespace, drain, and mass deletion19 blocking · 9 safe - Kustomize
kubernetes.kustomizeProtects against destructive Kustomize operations when combined with kubectl delete or applied without review3 blocking · 1 safe
Containers3
- Docker Compose
containers.composeProtects against destructive Docker Compose operations like 'down -v' which removes volumes4 blocking · 7 safe - Docker
containers.dockerProtects against destructive Docker operations like system prune, volume prune, and force removal9 blocking · 10 safe - Podman
containers.podmanProtects against destructive Podman operations like system prune, volume prune, and force removal9 blocking · 8 safe
Cloud providers3
- AWS CLI
cloud.awsProtects against destructive AWS CLI operations like terminate-instances, delete-db-instance, s3 rm --recursive, Athena/Glue catalog deletions, and destructive Athena queries (DROP, TRUNCATE, DELETE without WHERE)41 blocking · 11 safe - Azure CLI
cloud.azureProtects against destructive Azure CLI operations like vm delete, storage account delete, and resource group delete29 blocking · 6 safe - Google Cloud SDK
cloud.gcpProtects against destructive gcloud operations like instances delete, sql instances delete, and gsutil rm -r23 blocking · 7 safe
Infrastructure as code4
- Ansible
infrastructure.ansibleProtects against destructive Ansible operations like dangerous shell commands and unchecked playbook runs4 blocking · 7 safe - Atmos
infrastructure.atmosProtects against destructive Atmos operations like terraform deploy (auto-approve), destroy, clean, state rm/taint, and helmfile destroy11 blocking · 6 safe - Pulumi
infrastructure.pulumiProtects against destructive Pulumi operations like destroy and up with -y (auto-approve)6 blocking · 9 safe - Terraform
infrastructure.terraformProtects against destructive Terraform/OpenTofu operations like destroy, taint, and apply with -auto-approve8 blocking · 11 safe
Object storage4
- Azure Blob Storage
storage.azure_blobProtects against destructive Azure Blob Storage operations like container deletion, blob deletion, and azcopy remove.6 blocking · 19 safe - Google Cloud Storage
storage.gcsProtects against destructive GCS operations like bucket removal, object deletion, and recursive deletes.6 blocking · 15 safe - MinIO
storage.minioProtects against destructive MinIO Client (mc) operations like bucket removal, object deletion, and admin operations.6 blocking · 14 safe - AWS S3
storage.s3Protects against destructive S3 operations like bucket removal, recursive deletes, and sync --delete.6 blocking · 10 safe
Secrets managers5
- AWS Secrets Manager
secrets.aws_secretsProtects against destructive AWS Secrets Manager and SSM Parameter Store operations like delete-secret and delete-parameter.7 blocking · 9 safe - Doppler CLI
secrets.dopplerProtects against destructive Doppler CLI operations like deleting secrets, configs, environments, or projects.4 blocking · 8 safe - Infisical CLI
secrets.infisicalProtects against deleting Infisical secrets, folders, and dynamic-secret leases, plus resetting local Infisical configuration.4 blocking · 0 safe - 1Password CLI
secrets.onepasswordProtects against destructive 1Password CLI operations like deleting items, documents, users, groups, and vaults.6 blocking · 10 safe - HashiCorp Vault
secrets.vaultProtects against destructive Vault CLI operations like deleting secrets, disabling auth/secret engines, revoking leases/tokens, and deleting policies.9 blocking · 11 safe
Secret disclosure1
CI/CD4
- CircleCI
cicd.circleciProtects against destructive CircleCI operations like deleting contexts, removing secrets, deleting orbs/namespaces, or removing pipelines.6 blocking · 10 safe - GitHub Actions
cicd.github_actionsProtects against destructive GitHub Actions operations like deleting secrets/variables or using gh api DELETE against /actions endpoints.6 blocking · 7 safe - GitLab CI
cicd.gitlab_ciProtects against destructive GitLab CI/CD operations like deleting variables, removing artifacts, and unregistering runners.4 blocking · 7 safe - Jenkins
cicd.jenkinsProtects against destructive Jenkins CLI/API operations like deleting jobs, nodes, credentials, or build history.6 blocking · 9 safe
Platforms6
- Azure DevOps CLI
platform.azure_devopsProtects against destructive Azure DevOps CLI extension operations like project delete, repos delete, pipeline delete, and permission reset23 blocking · 2 safe - GitHub Platform
platform.githubProtects against destructive GitHub CLI operations like changing repository visibility or deleting repositories, gists, releases, or SSH keys.20 blocking · 13 safe - GitLab Platform
platform.gitlabProtects against destructive GitLab platform operations like deleting projects, releases, protected branches, and webhooks.11 blocking · 11 safe - Kamal
platform.kamalProtects against destructive Kamal 2.x operations that tear down the stack, delete accessory data directories, drop proxy routing, take the app offline, or prune the images that rollback depends on.10 blocking · 20 safe - Modal Platform
platform.modalProtects against destructive Modal CLI operations that can delete or wipe Modal Volumes, Secrets, Apps, Containers, Environments, Dicts, or Queues. Catches commands even when `-y`/`--yes` is passed to bypass interactive confirmation.12 blocking · 14 safe - Railway Platform
platform.railwayProtects against destructive Railway CLI and Public API operations that can delete projects, environments, services, functions, volumes, variables, or deployments.23 blocking · 10 safe
CDN and edge3
- Cloudflare Workers
cdn.cloudflare_workersProtects against destructive Cloudflare Workers, KV, R2, and D1 operations via the Wrangler CLI.9 blocking · 12 safe - AWS CloudFront
cdn.cloudfrontProtects against destructive AWS CloudFront operations like deleting distributions, cache policies, and functions.7 blocking · 12 safe - Fastly CDN
cdn.fastlyProtects against destructive Fastly CLI operations like service, domain, backend, and VCL deletion.11 blocking · 14 safe
DNS3
- Cloudflare DNS
dns.cloudflareProtects against destructive Cloudflare DNS operations like record deletion, zone deletion, and targeted Terraform destroy.4 blocking · 3 safe - Generic DNS Tools
dns.genericProtects against destructive or risky DNS tooling usage (nsupdate deletes, zone transfers).4 blocking · 3 safe - AWS Route53
dns.route53Protects against destructive AWS Route53 DNS operations like hosted zone deletion and record set DELETE changes.6 blocking · 4 safe
API gateways3
- Google Apigee
apigateway.apigeeProtects against destructive Google Apigee CLI and apigeecli operations.14 blocking · 24 safe - AWS API Gateway
apigateway.awsProtects against destructive AWS API Gateway CLI operations for both REST APIs and HTTP APIs.18 blocking · 27 safe - Kong API Gateway
apigateway.kongProtects against destructive Kong Gateway CLI, deck CLI, and Admin API operations.11 blocking · 14 safe
Load balancers4
- AWS ELB
loadbalancer.elbProtects against destructive AWS Elastic Load Balancing (ELB/ALB/NLB) operations like deleting load balancers, target groups, or deregistering targets from live traffic.7 blocking · 4 safe - HAProxy
loadbalancer.haproxyProtects against destructive HAProxy load balancer operations like stopping the service or disabling backends via runtime API.9 blocking · 5 safe - nginx
loadbalancer.nginxProtects against destructive nginx load balancer operations like stopping the service or deleting config files.5 blocking · 7 safe - Traefik
loadbalancer.traefikProtects against destructive Traefik load balancer operations like stopping containers, deleting config, or API deletions.9 blocking · 6 safe
Messaging4
- Apache Kafka
messaging.kafkaProtects against destructive Kafka CLI operations like deleting topics, removing consumer groups, resetting offsets, and deleting records.7 blocking · 9 safe - NATS
messaging.natsProtects against destructive NATS/JetStream operations like deleting streams, consumers, key-value entries, objects, and accounts.6 blocking · 10 safe - RabbitMQ
messaging.rabbitmqProtects against destructive RabbitMQ operations like deleting queues/exchanges, purging queues, deleting vhosts, and resetting cluster state.9 blocking · 6 safe - AWS SQS/SNS
messaging.sqs_snsProtects against destructive AWS SQS and SNS operations like deleting queues, purging messages, deleting topics, and removing subscriptions.8 blocking · 6 safe
Search engines4
- Algolia
search.algoliaProtects against destructive Algolia operations like deleting indices, clearing objects, removing rules/synonyms, and deleting API keys.7 blocking · 4 safe - Elasticsearch
search.elasticsearchProtects against destructive Elasticsearch REST API operations like index deletion, delete-by-query, index close, and cluster setting changes.10 blocking · 6 safe - Meilisearch
search.meilisearchProtects against destructive Meilisearch REST API operations like index deletion, document deletion, delete-batch, and API key removal.10 blocking · 8 safe - OpenSearch
search.opensearchProtects against destructive OpenSearch REST API operations and AWS CLI domain deletions.12 blocking · 8 safe
Monitoring5
- Datadog
monitoring.datadogProtects against destructive Datadog CLI/API operations like deleting monitors and dashboards.4 blocking · 3 safe - New Relic
monitoring.newrelicProtects against destructive New Relic CLI/API operations like deleting entities or alerting resources.6 blocking · 4 safe - PagerDuty
monitoring.pagerdutyProtects against destructive PagerDuty CLI/API operations like deleting services and schedules (which can break incident routing).7 blocking · 4 safe - Prometheus/Grafana
monitoring.prometheusProtects against destructive Prometheus/Grafana operations like deleting time series data or dashboards/datasources.7 blocking · 4 safe - Splunk
monitoring.splunkProtects against destructive Splunk CLI/API operations like index removal and REST API DELETE calls4 blocking · 3 safe
Backup4
- BorgBackup
backup.borgProtects against destructive borg operations like delete, prune, compact, and recreate.5 blocking · 7 safe - Rclone
backup.rcloneProtects against destructive rclone operations like sync, delete, purge, dedupe, and move.7 blocking · 8 safe - Restic
backup.resticProtects against destructive restic operations like forgetting snapshots, pruning data, removing keys, and cache cleanup.5 blocking · 8 safe - Velero
backup.veleroProtects against destructive velero operations like deleting backups, schedules, and locations.6 blocking · 7 safe
Email4
- Mailgun
email.mailgunProtects against destructive Mailgun API operations like domain deletion, route deletion, and mailing list removal.8 blocking · 0 safe - Postmark
email.postmarkProtects against destructive Postmark API operations like server deletion, template deletion, and sender signature removal.7 blocking · 0 safe - SendGrid
email.sendgridProtects against destructive SendGrid API operations like template deletion, API key deletion, and domain authentication removal.8 blocking · 0 safe - AWS SES
email.sesProtects against destructive AWS Simple Email Service operations like identity deletion, template deletion, and configuration set removal.10 blocking · 25 safe
Payments3
- Braintree
payment.braintreeProtects against destructive Braintree/PayPal payment operations like deleting customers or cancelling subscriptions via API/SDK calls.6 blocking · 3 safe - Square
payment.squareProtects against destructive Square CLI/API operations like deleting catalog objects or customers (which can break payment flows).7 blocking · 3 safe - Stripe
payment.stripeProtects against destructive Stripe CLI/API operations like deleting webhook endpoints and customers, or rotating API keys without coordination.7 blocking · 6 safe
Feature flags4
- Flipt
featureflags.fliptProtects against destructive Flipt CLI and API operations.8 blocking · 18 safe - LaunchDarkly
featureflags.launchdarklyProtects against destructive LaunchDarkly CLI and API operations.11 blocking · 18 safe - Split.io
featureflags.splitProtects against destructive Split.io CLI and API operations.10 blocking · 17 safe - Unleash
featureflags.unleashProtects against destructive Unleash CLI and API operations.9 blocking · 16 safe
Remote copy3
- rsync
remote.rsyncProtects against destructive rsync operations like --delete and its variants.2 blocking · 3 safe - scp
remote.scpProtects against destructive SCP operations like overwrites to system paths.10 blocking · 5 safe - ssh
remote.sshProtects against destructive SSH operations like remote command execution and key management.6 blocking · 9 safe
Package managers1
Strict git1
Windows4
- Windows Filesystem
windows.filesystemProtects against recursive/forced filesystem destruction on Windows: cmd `del /s`, `rd /s`, `format <drive>:`, PowerShell `Remove-Item -Recurse (with or without `-Force`; aliases included), `Clear-Content`, `Clear-RecycleBin`, and the .NET recursive-delete APIs `[System.IO.Directory]::Delete($path, $true)` and `<DirectoryInfo>.Delete($true)`.11 blocking · 2 safe - Windows Misc (registry/accounts/wsl)
windows.miscProtects against destructive Windows cmd operations: `reg delete`, `net user|localgroup /delete`, `sc delete`, `schtasks /delete`, `wsl --unregister` (destroys a WSL distro), and `robocopy /MIR` (mirror delete).6 blocking · 4 safe - Windows PowerShell Cmdlets
windows.powershellProtects against destructive PowerShell cmdlets: registry/provider deletes (`Remove-Item HKLM:\`, `Remove-ItemProperty`, `Remove-PSDrive`), account/task removal (`Remove-LocalUser`, `Unregister-ScheduledTask`), `Disable-ComputerRestore`, forced `Stop-Computer`/`Restart-Computer`, and `Remove-VM`/`Remove-AppxPackage`.9 blocking · 1 safe - Windows Disk & System
windows.systemProtects against catastrophic Windows disk/system operations: `vssadmin delete shadows` / `wmic shadowcopy delete` / `Win32_ShadowCopy` deletion through WMI or CIM (Volume Shadow Copy destruction), `wbadmin delete` (backup recovery points), `diskpart`, `Format-Volume`, `Clear-Disk`, `Remove-Partition`, `Remove-VirtualDisk`, `Initialize-Disk`, `Reset-PhysicalDisk`, `cipher /w`, `bcdedit /delete`, and destructive `fsutil` file/volume operations.14 blocking · 3 safe
Careful company (Windows preset)6
- Careful Company: Chat & Webhook Egress
careful_company_running_windows.chatBlocks posting to outbound chat and webhook destinations: Slack incoming webhooks and Web API writes, Microsoft Teams connectors and Power Automate triggers, Discord webhooks, Telegram bot API, Google Chat spaces, Twilio messages, Zapier/IFTTT hooks, PagerDuty events, and request catchers such as webhook.site and interact.sh.11 blocking · 2 safe - Careful Company: Outbound Email
careful_company_running_windows.emailBlocks sending email from the workstation: `Send-MailMessage`, `System.Net.Mail.SmtpClient`, Outlook COM automation, Microsoft Graph `sendMail`, transactional mail-API send endpoints (SendGrid/Mailgun/Postmark/Resend/SparkPost/Brevo/Mailjet), `aws ses send-email`, and SMTP CLI tools (`blat`, `swaks`, `msmtp`, `curl --mail-rcpt`).9 blocking · 2 safe - Careful Company: Guardrail Tampering
careful_company_running_windows.guardrailsBlocks disabling the controls that supervise the agent: Microsoft Defender (`Set-MpPreference -Disable*`/`-ExclusionPath`), the Windows firewall, EDR and event-log services, BitLocker, `Set-ExecutionPolicy Bypass`, PowerShell script-block logging, event-log clearing (`wevtutil cl`, `auditpol /clear`), and dcg's own bypass/uninstall, allowlist grants, runtime config overrides, or agent hook config. Also blocks unreviewed remote code: `iwr | iex`, `powershell -EncodedCommand`, and mshta/regsvr32/rundll32 remote payloads.15 blocking · 4 safe - Careful Company: File-Transfer Egress
careful_company_running_windows.transferBlocks outbound file transfer: scp/pscp/sftp/psftp/WinSCP to a remote destination, scripted FTP and `tftp put`, rsync to a remote, rclone to a remote, cloud-storage uploads (`aws s3 cp` local->s3://, `s3api put-object`, `az storage blob upload`, azcopy, `gsutil cp`->gs://, b2/s3cmd/mc/wrangler r2/supabase), peer-to-peer senders (croc/wormhole/ffsend/Taildrop), WebDAV mounts, and copy LOLBins (`esentutl /y`, `print /D:`, `diantz`). Package publishes and git remote-URL changes warn.21 blocking · 6 safe - Careful Company: Tunnels & Raw Channels
careful_company_running_windows.tunnelBlocks channels that expose the workstation or bypass network inspection: ngrok, cloudflared, devtunnel/`code tunnel`, localtunnel, `tailscale funnel`, `ssh -R`/`-D` reverse and SOCKS forwards, chisel/frp/gost/zrok/bore, ncat/netcat/socat, PowerShell raw sockets, `netsh interface portproxy`, DNS tunnels (dnscat2/iodine), out-of-band callback domains, and DNS labels long enough to be carrying encoded data.15 blocking · 4 safe - Careful Company: HTTP Upload Egress
careful_company_running_windows.uploadBlocks HTTP file-upload primitives (`-InFile`, `-Form`, `curl -T`, `-F field=@file`, `--data-binary @file`, `--post-file`, `WebClient.UploadFile`, `GetRequestStream`, `MultipartFormDataContent`, BITS uploads), file-drop and paste services, `gh gist create`, `certreq -Post`, and request bodies built from file or clipboard contents. Mutating requests with an inline body warn instead of blocking; plain GETs and downloads are untouched.18 blocking · 3 safe
No pack matches that. dcg may still cover the tool under another name; ask for a pack or write your own.