Scanned: src · Taxonomy: financial · 8 file(s)
Gated: 6 Ungated: 2 6 of 6 risky tools are protected with ShadowAuditTool.
| Tool | Category | Status | Risk | Location |
|---|---|---|---|---|
PaymentTool
langchain |
payment_initiation
Money movement — user must be in the loop. |
✓ Gated | HIGH |
payment_tools.py:10
|
RefundTool
langchain |
payment_initiation
Money movement — user must be in the loop. |
✓ Gated | HIGH |
payment_tools.py:23
|
WireTransferTool
langchain |
payment_initiation
Money movement — user must be in the loop. |
❌ Ungated | HIGH |
payment_tools.py:37
|
|
Remediation:
Wrap with ShadowAuditTool: ShadowAuditTool(tool=WireTransferTool(), agent_id="YOUR_AGENT_ID", risk_category="payment_initiation")
|
||||
BalanceInquiryTool
langchain |
read_only
Unknown category |
✓ Gated | LOW |
readonly_tools.py:9
|
TransactionHistoryTool
langchain |
read_only
Unknown category |
✓ Gated | LOW |
readonly_tools.py:22
|
DeleteAccountTool
langchain |
delete
Unknown category |
✓ Gated | CRITICAL |
account_tools.py:9
|
UpdateAccountTool
langchain |
update
Unknown category |
✓ Gated | HIGH |
account_tools.py:22
|
BulkDataExportTool
langchain |
data_export
Unknown category |
❌ Ungated | CRITICAL |
account_tools.py:35
|
|
Remediation:
Wrap with ShadowAuditTool: ShadowAuditTool(tool=BulkDataExportTool(), agent_id="YOUR_AGENT_ID", risk_category="data_export")
|
||||
| Category | Total | Gated | Ungated | Critical/High |
|---|---|---|---|---|
payment_initiation |
3 | 2 | 1 | 1 |
read_only |
2 | 2 | 0 | — |
delete |
1 | 1 | 0 | — |
update |
1 | 1 | 0 | — |
data_export |
1 | 0 | 1 | 1 |
Auto-generated taxonomy based on detected tools. Save as a .json file for reuse with --taxonomy.
{
"payment_initiation": {
"delta": 0.3,
"risk_keywords": [
"pay",
"payment",
"transfer",
"send_money",
"disburse",
"remit",
"send",
"wire"
],
"description": "Money movement — user must be in the loop."
},
"read_only": {
"delta": 1.0,
"risk_keywords": [
],
"description": "Unknown category"
},
"delete": {
"delta": 0.2,
"risk_keywords": [
],
"description": "Unknown category"
},
"update": {
"delta": 0.3,
"risk_keywords": [
],
"description": "Unknown category"
},
"data_export": {
"delta": 0.15,
"risk_keywords": [
],
"description": "Unknown category"
}
}
Step-by-step instructions to wrap each ungated tool with ShadowAudit enforcement.
Wrap WireTransferTool (category: payment_initiation) with ShadowAuditTool to enforce runtime governance.
from shadowaudit.framework.langchain import ShadowAuditTool
wiretransfertool_safe = ShadowAuditTool(
tool=WireTransferTool(),
agent_id="YOUR_AGENT_ID",
risk_category="payment_initiation"
)
Wrap BulkDataExportTool (category: data_export) with ShadowAuditTool to enforce runtime governance.
from shadowaudit.framework.langchain import ShadowAuditTool
bulkdataexporttool_safe = ShadowAuditTool(
tool=BulkDataExportTool(),
agent_id="YOUR_AGENT_ID",
risk_category="data_export"
)