Database Query Best Practices

Security checks across malware telemetry and agentic risk

Overview

The skill is mostly a database safety guide, but it includes commands that can forcibly stop local apps or production database sessions if run without review.

Install/use this only as guidance, not as permission for automatic cleanup. Before running any pkill, Railway, psql, or pg_terminate_backend command, confirm the target project, inspect affected processes or database sessions, and prefer graceful shutdowns and least-privilege database access.

VirusTotal

VirusTotal findings are pending for this skill version.

View on VirusTotal

Risk analysis

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

#
ASI02: Tool Misuse and Exploitation
Medium
What this means

If run automatically or carelessly, these commands could stop unrelated local Node processes, interrupt dev work, or disconnect production database clients.

Why it was flagged

The skill instructs the agent/user to run broad force-kill shell commands and a production-impacting PostgreSQL backend termination command. These are purpose-related emergency actions, but the artifact does not require explicit user approval, process inspection, or narrow targeting before execution.

Skill content
pkill -9 -f "npm run dev" ... pkill -9 node ... SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'railway'
Recommendation

Treat these as manual last-resort actions. Confirm with the user, inspect affected processes/sessions first, prefer graceful shutdowns, and verify the target Railway project and database before terminating anything.

#
ASI03: Identity and Privilege Abuse
Low
What this means

Queries or administrative commands may run against the linked Railway project with whatever database privileges the current account has.

Why it was flagged

The recommended workflow relies on authenticated Railway CLI access and database privileges. This is expected for Railway PostgreSQL querying, but it means actions are performed under the user's Railway/project permissions.

Skill content
railway login ... railway link ... railway run psql -c "SELECT COUNT(*) FROM users ..."
Recommendation

Use least-privilege or read-only database access when possible, verify the linked Railway project before running commands, and avoid production-impacting SQL unless explicitly approved.