Atomic Runbook: Get File Hash Reputation from GTI
SkillDev toolsUse when querying GTI and VirusTotal reputation and sandbox verdicts
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Atomic Runbook: Get File Hash Reputation from GTI skill
What this skill tells your AI
The instructions your AI receives, as published by dandye/adk_runbooks in skills/atomic/hash-get-gti-report/SKILL.md and read by ahel’s review.
ID: RB-ATOM-HASH-001
Version: 1.0
Last_Updated: 2025-05-30
Purpose: To retrieve a comprehensive file analysis report from Google Threat Intelligence (GTI) for a given file hash (MD5, SHA1, or SHA256) to assess its reputation and known characteristics.
Parent_Runbook(s)/Protocol(s): rules-bank/indicator_handling_protocols.md#3-atomic-indicator-file-hash
Trigger: When a file hash requires an external reputation check as part of an investigation, malware analysis, or alert triage.
Inputs Required
file_hash: string - The file hash (MD5, SHA1, or SHA256) to query.- Source Example: Alert field
target.file.sha256, EDR detection data, output from malware analysis sandbox.
- Source Example: Alert field
hash_type(optional): string - Specify "MD5", "SHA1", or "SHA256" if known. GTI can often auto-detect.- Source Example: Derived from context or tool output.
Execution Steps
- Tool Selection:
- Primary_Tool_MCP_Server:
Google Threat Intelligence MCP - Primary_Tool_Name:
get_file_report
- Primary_Tool_MCP_Server:
- Parameter Mapping:
- Map
file_hash(Input) to MCP Tool parameterhash.
- Map
- Execute Tool: Call the
get_file_reporttool with the mappedhash.- AI Agent Note: Refer to
rules-bank/mcp_tool_best_practices.mdfor specific guidance on GTI tools.
- AI Agent Note: Refer to
- Data Transformation/Extraction:
- The primary output is a JSON object. Key fields for assessment include
data.attributes.last_analysis_stats(especiallymalicious),data.attributes.popular_threat_classification,data.attributes.tags,data.attributes.meaningful_name.
- The primary output is a JSON object. Key fields for assessment include
Outputs Expected
gti_file_report: JSON - The full JSON report from the GTIget_file_reporttool.malicious_score: integer - Engines reporting as malicious (fromgti_file_report.data.attributes.last_analysis_stats.malicious).suspicious_score: integer - Engines reporting as suspicious.harmless_score: integer - Engines reporting as harmless.threat_classification: string (optional) - Fromgti_file_report.data.attributes.popular_threat_classification.suggested_threat_label.tags: list - Fromgti_file_report.data.attributes.tags.meaningful_name: string (optional) - Fromgti_file_report.data.attributes.meaningful_name.output_status: string - ["Success", "Failure", "NotFound"]- "NotFound" if GTI has no information on the hash.
output_message: string (if Failure) - Details of the issue.
Decision Logic / Next Steps (If Applicable)
- IF
output_statusis "Success":- IF
malicious_score> 5 ORthreat_classificationindicates a significant threat (e.g., "ransomware", "trojan") THEN- Flag File Hash as "High_Risk_GTI".
- Proceed to
rb_hash_lookup_entity_chronicle.mdto check for internal sightings. - Consider immediate escalation or containment playbook initiation.
- ELSE IF
malicious_score> 0 ORsuspicious_score> 0 ORthreat_classificationis "PUA" (Potentially Unwanted Application) THEN- Flag File Hash as "Medium_Risk_GTI_Needs_Correlation".
- Proceed to
rb_hash_lookup_entity_chronicle.md.
- ELSE (low malicious/suspicious score, no concerning classification)
- Flag File Hash as "Low_Risk_GTI".
- Proceed to
rb_hash_lookup_entity_chronicle.mdfor due diligence.
- IF
- IF
output_statusis "NotFound":- Log "File hash {file_hash} not found in GTI."
- Flag File Hash as "Unknown_Reputation_GTI".
- Proceed to
rb_hash_lookup_entity_chronicle.mdand consider dynamic analysis if seen internally.
- ELSE (
output_statusis "Failure"):- Log error:
output_message. - Consider executing
rb_hash_get_secops_threat_intel.mdas an alternative. - IF alternative also fails, escalate: "Failed to retrieve external reputation for file hash {file_hash}."
- Log error:
AI Agent Execution Notes
- The AI should parse the
gti_file_reportto extract the specific output parameters. - If
hash_typeis not provided, GTI usually auto-detects. If errors occur, prompting for hash type might be a fallback.
Metrics Collection Points
- Log execution time.
- Log
output_status,malicious_score. - (Reference
rules-bank/ai_performance_logging_requirements.md)
References
rules-bank/mcp_tool_best_practices.mdrules-bank/indicator_handling_protocols.mdrules-bank/ai_performance_logging_requirements.md
Signals
- GitHub stars
- 84
- Forks
- 14
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
hash-get-gti-report- Source
- github.com/dandye/adk_runbooks