T01 · Skill Instruction Hijacking
- Location
app/pipeline.py:142- Finding
Fail-Open Degradation Bypasses Prompt-Injection Validation
- Content
View full analysis
IntentResult: if settings.intent_degrade_mode == "loose": return IntentResult( request_id=request_id, action="degrade_loose", is_allow_forward=True, risk_level="warning", risk_warning=True, rewritten_query=pre.raw_text_cleaned, original_user_query=pre.raw_text, cleaned_query=pre.raw_text_cleaned, intent_type="unknown_intent", intent_desc="LLM intent recognition failed; loose mode forward", entity_extract={"industry": [], "etf_code": [], "index_name": [], "query_object": ""}, agent_allow_list=list(ALL_AGENTS), degraded=True, parse_failed=True, rule_labels=list(pre.rule_labels) + ["intent_parse_failed"], ) ``` ### Technical Analysis When `call_intent_llm()` raises `IntentLLMError`, the function immediately returns the result of `_degrade()`. Consequently, the Stage 4 `detect_ ...[truncated 1801 chars]- Remediation
View remediation
