Agent Graph¶
src.agent.graph ¶
build_graph ¶
build_graph()
Builds the Langchain Graph
Source code in src/agent/graph.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
run_graph ¶
run_graph(file_path, hint=None, model='gemini-2.0-flash')
Invokes the Langchain Graph
Source code in src/agent/graph.py
38 39 40 41 42 43 |
|
src.agent.cti_agent ¶
Threat Intel agent: wraps provider tools and normalization.
cti_from_hash ¶
cti_from_hash(sha256)
Query VT, MalwareBazaar, Hybrid-Analysis, and OTX for a hash.
Source code in src/agent/cti_agent.py
40 41 42 43 44 45 46 47 48 |
|
hybrid_analysis_lookup_tool ¶
hybrid_analysis_lookup_tool(sha256)
Hybrid Analysis hash search (full JSON).
Source code in src/agent/cti_agent.py
34 35 36 37 38 |
|
malwarebazaar_lookup_tool ¶
malwarebazaar_lookup_tool(hash_value)
Consulta MalwareBazaar (JSON completo).
Source code in src/agent/cti_agent.py
22 23 24 25 26 |
|
normalize_cti ¶
normalize_cti(vt, mb, ha, otx, sha256)
Normalize providers into a single structure for a hash indicator.
Source code in src/agent/cti_agent.py
50 51 52 |
|
otx_query_ioc_tool ¶
otx_query_ioc_tool(ioc)
AlienVault OTX query (auto-rota por tipo de IOC).
Source code in src/agent/cti_agent.py
28 29 30 31 32 |
|
vt_lookup_tool ¶
vt_lookup_tool(sha256)
VirusTotal file lookup (full JSON).
Source code in src/agent/cti_agent.py
16 17 18 19 20 |
|
src.agent.static_agent ¶
Static triage agent: wraps pure static-analysis functions as LangChain tools.
This agent does not use an LLM. It collects evidence (hashes, PE, imports, sections, version, strings, indicators, YARA, CAPA) and returns a dictionary that the supervisor (LLM) can summarize later.
start_triage ¶
start_triage(path, strings_min_len=4)
Run full triage: basic info, imports, sections, version, strings, signatures, indicators, YARA, CAPA.
Source code in src/agent/static_agent.py
18 19 20 21 22 23 24 25 |
|