cyberstrikeus/cyberstrike/t1505-001-sql-stored-procedures

Claude Code and agent skill by cyberstrikeus/cyberstrike

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Adversaries may abuse SQL stored procedures to establish persistent access to systems.

Install

npx vskill@latest install cyberstrikeus/cyberstrike/t1505-001-sql-stored-procedures

SKILL.md

The same SKILL.md was published earlier as cyberstrikeus/cyberstrike/t1505-001-sql-stored-procedures.

T1505.001 SQL Stored Procedures

Sub-technique of: T1505

High-Level Description

Adversaries may abuse SQL stored procedures to establish persistent access to systems. SQL Stored Procedures are code that can be saved and reused so that database users do not waste time rewriting frequently used SQL queries. Stored procedures can be invoked via SQL statements to the database using the procedure name or via defined events (e.g. when a SQL server application is started/restarted).

Adversaries may craft malicious stored procedures that can provide a persistence mechanism in SQL database servers. To execute operating system commands through SQL syntax the adversary may have to enable additional functionality, such as xp_cmdshell for MSSQL Server.

Microsoft SQL Server can enable common language runtime (CLR) integration. With CLR integration enabled, application developers can write stored procedures using any .NET framework language (e.g. VB .NET, C#, etc.). Adversaries may craft or modify CLR assemblies that are linked to stored procedures since these CLR assemblies can be made to execute arbitrary commands.

Kill Chain Phase

  • Persistence (TA0003)

Platforms: Windows, Linux

What to Check

  • [ ] Identify if SQL Stored Procedures technique is applicable to target environment
  • [ ] Check Windows systems for indicators of SQL Stored Procedures
  • [ ] Check Linux systems for indicators of SQL Stored Procedures
  • [ ] Verify mitigations are bypassed or absent (3 known mitigations)
  • [ ] Assess detection coverage (1 detection strategies)

How to Test

Manual Testing
  1. Identify Attack Surface: Determine if the target environment is susceptible to SQL Stored Procedures by examining the target platforms (Windows, Linux).
  1. Assess Existing Defenses: Review whether mitigations for T1505.001 are in place. If defenses are absent or misconfigured, this technique may be exploitable.
  1. Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.
Note: No Atomic Red Team tests available for this technique. See Atomic Red Team GitHub for updates.

Remediation Guide

M1047 Audit

Regularly check component software on critical services that adversaries may target for persistence to verify the integrity of the systems and identify if unexpected changes have been made.

M1045 Code Signing

Ensure all application component binaries are signed by the correct application developers.

M1026 Privileged Account Management

Do not allow administrator accounts that have permissions to add component software on these services to be used for day-to-day operations that may expose them to potential adversaries on unprivileged systems.

Detection

Detection Strategy for SQL Stored Procedures Abuse via T1505.001

Risk Assessment

FindingSeverityImpact
SQL Stored Procedures technique applicableLowPersistence

CWE Categories

CWE IDTitle
CWE-276Incorrect Default Permissions

References

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2,916
Repository forks
457
7-day trend score
40

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cyberstrikeus/cyberstrike/t1505-001-sql-stored-procedures/badge)](https://verified-skill.com/skills/cyberstrikeus/cyberstrike/t1505-001-sql-stored-procedures)

Something wrong with this skill or its page? Tell us.