altinity-expert-clickhouse-security
БесплатноБез исполняемых скриптовНе проверенRead-only ClickHouse security audit of users, roles, grants, row policies, settings profiles, quotas, named collections, table functions and engines…
от Altinity★ 18 звёзд на GitHubОб этом скилле
ClickHouse security audit
A professional, read-only security audit from system.users, system.grants, system.roles, system.row_policies, system.settings_profile_elements, system.quotas, system.named_collections, system.functions, system.clusters and supplied configuration files.
Run altinity-expert-clickhouse-connection first if the connection mode, cluster and time window are not yet established.
Core behavior
- Work as a senior ClickHouse security reviewer. Prefer read-only SQL and metadata inspection.
- Never run destructive SQL and never attempt online password guessing.
- Never print secrets, password hashes, salts, private keys, access keys, tokens, or recovered password candidates.
- Correlate findings. Do not flag a setting without considering grants, network exposure, user intent, version and observed query behavior.
- State explicitly what could not be verified from the access you had.
- Give remediation only when asked, and then minimally. For grant changes use the least-privilege, role-based method of the grants skill: the smallest scoped statements, roles over users, never a broad
*.*grant.
Query packs
checks.sql— 20 checks: server identity, fullSHOW ACCESSdump, user inventory with auth method and host ACL, roles and role graph, grant posture per principal, admin-equivalent and access-management holders, security-sensitive privileges, column-scoped grants, row policies, settings profiles and elements, quotas, named collection names, user-defined and executable functions, secure ports, cluster topology and the distributed user, external-engine tables and DEFINER views, logging and auth-audit baseline. Local node only; cluster-wide checks live inreferences/15-cluster-distributed-security.md.references/— 20 depth files, indexed below. Load only the ones a finding points at.
How to run the query packs
- Read each pack file from this skill's directory (the skill loader prints the directory path).
- Run statements one at a time, never a whole file. Statements end with
;and start with a-- @check <id> <title>header; keep the id with its result. - Honor
-- @requires: skip the statement when the named table is missing, whenkeeperis required and the server has no Keeper/ZooKeeper, or when the version condition is not met. List skipped ids with the reason. - Keep
{cluster}as written when a cluster macro exists; otherwise apply the connection skill's rewrite rule. Any other{placeholder}is a template variable: substitute a real value first or skip the statement. - On an error, record the check id and the first line of the error, then continue. Only for
UNKNOWN_IDENTIFIER, runDESCRIBE TABLE system.<table>and drop the missing column. - A
severitycolumn is the verdict for that row. Copy it; do not re-grade.
Interpretation rules
Establish scope before judging anything: live SQL access versus exported system.* data versus supplied users.xml and config.xml; single node or cluster; ClickHouse version and deployment model. Then run checks.sql as the first pass and add supplied config snippets and recent system.query_log and system.session_log extracts as needed.
- Report each finding with title, severity, confidence, evidence summary, why it matters, what was not verifiable, and only then a suggested confirmation or remediation.
session_log_exists = 0(security-20) means login and authentication auditing is off. Table absence is the signal; no further query is needed.VALID UNTILis not asystem.userscolumn on current versions. Read expiration fromSHOW CREATE USERor theSHOW ACCESSdump instead of reporting it as absent.- Named collection values are masked by the server. List names only and never select values; a masked value is not evidence that the secret is safe.
- A grant that looks excessive may be justified by an application's real workload. Check
system.query_logfor whether the privilege is actually exercised before calling it over-privileged. - Version matters for source, engine and definer behavior. Check
references/14-version-specific-security-checks.mdbefore asserting that a privilege is or is not required. - Column-scoped SELECT grants are bypassable through views, row policies on other tables, and table functions. Treat them as a control only when the bypass paths are also closed.
Reference index
references/01-scope-and-safety.md: safe execution rules, evidence handling, redaction.references/02-identity-authentication.md: users, auth methods, default user, expiration, multiple auth methods.references/03-users-roles-grants-rbac.md: RBAC, grants, admin-equivalent permissions.references/04-definer-impersonation-principals.md:SQL SECURITY DEFINER,EXECUTE AS, no-password principals.references/05-network-exposure-and-tls.md: host restrictions, ports, TLS, exposure.references/06-table-functions-external-sources.md: table functions, `SOURC
Установить altinity-expert-clickhouse-security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл altinity-expert-clickhouse-security?
Read-only ClickHouse security audit of users, roles, grants, row policies, settings profiles, quotas, named collections, table functions and engines, executable UDFs, TLS and network exposure, Keeper and interserver security, audit logging, password hash hygiene, and SQL SECURITY DEFINER. Use when assessing security posture or finding over-privileged or exposed access.
Как установить скилл altinity-expert-clickhouse-security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл altinity-expert-clickhouse-security запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic