---
name: detect_sql_injection
kind: function
lang: go
domain: cybersecurity
version: "1.0.0"
purity: pure
signature: "func DetectSQLInjection(input string) (isThreat bool, pattern string)"
description: "Analiza un input en busca de patrones heuristicos de inyeccion SQL y devuelve si se detecto amenaza y el patron encontrado."
tags: [cybersecurity, sqli, detection, security]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: [regexp, strings]
params:
  - name: input
    desc: "string a analizar en busca de patrones de SQL injection"
output: "tupla (isThreat, pattern): booleano indicando si se detectó amenaza, y nombre del patron encontrado"
tested: false
tests: []
test_file_path: ""
file_path: "functions/cybersecurity/detect_sql_injection.go"
---
