T06 · System Persistence
- Location
setup.sh:198- Finding
Redundant cross-session persistence through systemd and launchd
- Content
View full analysis
/dev/null; then # ── systemd user service (Linux) ── SYSTEMD_DIR="$HOME/.config/systemd/user" mkdir -p "$SYSTEMD_DIR" cat > "$SYSTEMD_DIR/clawwall.service" </dev/null || true systemctl --user enable clawwall.service 2>/dev/null || true ok "Created systemd user service: $SYSTEMD_DIR/clawwall.service" elif [[ "$(uname)" == "Darwin" ]]; then # ── launchd plist (macOS) ── PLIST_DIR="$HOME/Library/LaunchAgents" PLIST_FILE="$PLIST_DIR/com.clawwall.service.plist" mkdir -p "$PLIST_DIR" cat > "$PLIST_FILE" < Label com.clawwall.service ProgramArguments $CLAWWALL_BIN RunAtLoad KeepAlive EnvironmentVariables CLAWGUARD_HOST 0.0.0.0 CLAWGUARD_PORT $CLAWWALL_PORT StandardOutPath $CLAWWALL_CONFIG_DIR/clawwall.log StandardErrorPath $CLAWWALL_CONFIG_DIR/clawwall.err PLISTEOF ``` ```bash if [[ "$(uname)" == "Linux" ]] && command -v systemctl &>/dev/null; then systemctl --user start clawwall.service 2>/dev/nu ...[truncated 1852 chars]- Remediation
View remediation
