sqlalchemy-patterns
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The
BaseRepositoryimplementation inSKILL.mdcontains an update pattern that is vulnerable to unauthorized data modification if used directly with external input. - Ingestion points: The
updatemethod in theBaseRepositoryclass accepts**kwargsthat are iterated and applied to the model instance. - Boundary markers: The code snippet lacks explicit boundary markers or instructions to ignore embedded instructions in the input data.
- Capability inventory: The skill demonstrates the ability to perform database writes and commit transactions via
self.db.commit(). - Sanitization: The provided pattern uses
setattr(obj, key, value)without a whitelist or validation of allowed fields, creating a mass assignment surface where untrusted data could overwrite sensitive model attributes (e.g.,is_activeorid) if thekwargsoriginate from user-controlled sources.
Audit Metadata