Sigma rule: Python SQL Exceptions
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-b02c0082ab57, updated 2020-09-01T00:00:00.000Z.
Rule
- Title
- Python SQL Exceptions
- Status
- stable
- Level
- medium
- Author
- Thomas Patzke
- Date
- 2017-08-12
- Modified
- 2020-09-01
- File
- rules/application/python/app_python_sql_exceptions.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Generic rule for SQL exceptions in Python according to PEP 249
Log source
- product
- python
- category
- application
Detection
keywords:
- DataError
- IntegrityError
- ProgrammingError
- OperationalError
condition: keywordsFalse positives (as the rule lists them)
- Application bugs
Tags
- attack.initial-access
- attack.t1190
MITRE ATT&CK ids this rule names
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/python/app_python_sql_exceptions.yml
Sources and licences
SigmaHQ
"Python SQL Exceptions" by Thomas Patzke (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/python/app_python_sql_exceptions.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Python SQL Exceptions",
entity page, dataset version ref-b02c0082ab57, updated 2020-09-01T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/19aefed0-ffd4-47dc-a7fc-f8b1425e84f9 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 19aefed0-ffd4-47dc-a7fc-f8b1425e84f9, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.