Skip to content
Back to skills

Permission Aware Query Builder

ASecurity

Warns when CMIS or Alfresco Query Language queries may bypass ACLs. Suggests SearchService with authority context instead. Trigger when generating search or query code.

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentsnodesecurity

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add aborroy/aiup-alfresco --skill permission-aware-query-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Permission Aware Query Builder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Permission Aware Query Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aborroy-permission-aware-query-builder/badge)](https://www.skillsdirectory.com/skills/aborroy-permission-aware-query-builder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: permission-aware-query-builder
description: Warns when CMIS or Alfresco Query Language queries may bypass ACLs. Suggests SearchService with authority context instead. Trigger when generating search or query code.
---


# Permission-Aware Query Builder

Review generated query code for potential ACL bypass issues.

## Rules

1. **Never use direct JDBC/Hibernate queries** to access nodes — these bypass the permission model entirely
2. **CMIS queries** run in the context of the authenticated user by default — this is safe
3. **SearchService queries** — verify `SearchParameters` includes authority context when needed
4. **`AuthenticationUtil.runAsSystem`** — flag any query executed inside `runAsSystem` as a potential security issue unless explicitly justified
5. **`sys_acl` / `sys_racl`** — when using Search Enterprise (Elasticsearch), verify that ACL fields are included in the search index configuration
6. **Solr AFTS queries** — respect `fts.alfresco.defaultNamespace` setting; warn if queries hardcode node refs

## Output
Flag each potential ACL bypass with severity (high/medium/low), explanation, and suggested fix.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.