Hologres Slow Query Analysis

Security checks across malware telemetry and agentic risk

Overview

The skill is mostly a coherent Hologres diagnostics guide, but it includes broad, persistent database privilege-granting instructions that users should review carefully before running.

Install only if you are comfortable reviewing and running database administration commands manually. Prefer read-only or narrowly scoped permissions, avoid granting SUPERUSER unless an administrator explicitly approves it, verify any log export destination and retention policy, and do not apply database-level logging or retention changes automatically.

VirusTotal

VirusTotal findings are pending for this skill version.

View on VirusTotal

Risk analysis

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

#
ASI03: Identity and Privilege Abuse
High
What this means

If run, an account could gain broad administrative or cross-database log visibility beyond the immediate diagnostic task.

Why it was flagged

The skill presents persistent database privilege-granting commands, including SUPERUSER, as part of the setup for viewing logs. This is broader authority than many slow-query investigations need and is not paired with explicit approval or revocation guidance.

Skill content
ALTER USER "cloud_account_id" SUPERUSER; ... GRANT pg_read_all_stats TO "cloud_account_id"; ... CALL spm_grant('<db_name>_admin', 'cloud_account_id');
Recommendation

Prefer the least-privileged option needed for the task, avoid SUPERUSER unless absolutely necessary, get explicit user/admin approval, and document/revoke any temporary grants after analysis.

#
ASI02: Tool Misuse and Exploitation
Medium
What this means

Changing retention or logging settings can affect future diagnostics, auditing, and availability of historical query logs.

Why it was flagged

The skill documents database-level configuration changes that can alter logging behavior and immediately remove expired logs. This is relevant to log management, but users should understand the operational effect before applying it.

Skill content
ALTER DATABASE dbname SET hg_query_log_retention_time_sec = 604800; ... Expired logs are cleaned immediately (not async)
Recommendation

Confirm the target database and retention/logging values before applying changes, and keep a rollback plan for any database-level settings.

#
ASI07: Insecure Inter-Agent Communication
Medium
What this means

SQL text, user names, error messages, query plans, and other operational details may be retained or shared outside the original Hologres log table.

Why it was flagged

The export workflow copies query log contents, including SQL text and plans, into MaxCompute with a long lifecycle. This is disclosed and purpose-aligned, but it moves potentially sensitive operational data to another storage boundary.

Skill content
Export to MaxCompute ... query STRING COMMENT 'Query text' ... plan STRING COMMENT 'Query plan' ... LIFECYCLE 365; ... INSERT INTO mc_holo_query_log SELECT ... query ... plan ... FROM hologres.hg_query_log
Recommendation

Export only the needed time range and fields, verify MaxCompute permissions and retention, and avoid exporting sensitive query text unless required.

#
ASI04: Agentic Supply Chain Vulnerabilities
Low
What this means

Installing an unpinned package may pull a newer or unexpected version of the CLI.

Why it was flagged

The skill requires installing an external CLI package without a pinned version. This is central to the stated Hologres CLI workflow, but it is still a supply-chain consideration.

Skill content
pip install hologres-cli
Recommendation

Install hologres-cli from a trusted package source, consider pinning a known-good version, and review the CLI's permissions and configuration before use.