Home

System

This page lists the safe and destructive patterns in the Disk, Network, and Services shell guard packs. See Shell Tool for how these patterns are evaluated.

Disk

Pack ID: system.disk

Guards against destructive disk operations

Destructive patterns

Rule IDReasonSuggestionConfidence
system.disk.dd_to_deviceWriting directly to devices can destroy partitions and dataSpecify a file path instead of a deviceHigh
system.disk.mkfsFormatting a device destroys all data on itVerify the target device with lsblk firstHigh
system.disk.fdisk_partedPartition changes can cause data lossUse fdisk -l or parted print to inspect firstMedium

Network

Pack ID: system.network

Guards against destructive network operations

Destructive patterns

Rule IDReasonSuggestionConfidence
system.network.iptables_flushFlushing firewall rules removes all network security policiesUse iptables -L to list rules first; save with iptables-saveHigh
system.network.route_deleteDeleting routes can cause network connectivity lossUse ip route show to review routes before modificationMedium
system.network.interface_downBringing down a network interface disrupts connectivityEnsure you have alternative access before modifying interfacesMedium

Services

Pack ID: system.services

Guards against destructive system service operations

Destructive patterns

Rule IDReasonSuggestionConfidence
system.services.systemctl_destructiveStopping or disabling critical services can break the systemUse systemctl status to check service state firstMedium
system.services.service_stopStopping services can disrupt running applicationsUse service <name> status to check before stoppingMedium
system.services.kill_signalSIGKILL terminates processes without cleanupUse kill (SIGTERM) first to allow graceful shutdownMedium

This documentation was generated from rust/agents/src/tool_guard/shell/packs/system.rs.

© 2026 Stencila