Buckets:
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| README.md | 6.85 kB xet | 05aba5b6 | |
| evaluation_dataset.csv | 138 kB xet | 8fcea85e | |
| evaluation_notebook.ipynb | 1.49 MB xet | 68939cb7 | |
| evaluation_summary.csv | 197 Bytes xet | 903027e1 | |
| export_results_cell.py | 1.07 kB xet | b1fbd7a6 | |
| fatima-fellowship-challenge_evaluation_notebook.ipynb | 1.36 MB xet | b34a7fd0 | |
| requirements.txt | 59 Bytes xet | c72e64af | |
| task_level_specific_mechanism_results.csv | 506 Bytes xet | 2a883524 |
Evaluating a Security-Reasoning Blind Spot in an Open-Weight LLM
Research question
Blind Spot: LLMs can produce generic security guidance while failing to explicitly connect the task-specific mechanism to the security consequence.
When you ask current AI models a technical question, they produce standard safety tips like "use strong passwords" or "enable encryption." Because the AI gives these warnings, it sounds smart and safety-conscious. But giving generic advice is not the same as actually understanding how a system works. In reality, models often fail to spot the exact technical flaw in a setup or explain why a specific action is dangerous.
For example, if you ask an AI how to access your home PC from outside your network, it might tell you how to open up Remote Desktop and politely remind you to "use a strong password." What it fails to realize is that leaving Remote Desktop directly open to the public internet is a huge security risk on its own, regardless of how strong your password is—it should be telling you to set up a private VPN instead.
This evaluation investigates the gap between generic security guidance and mechanism-specific security reasoning. It examines whether changes in risk framing influence a model's ability to identify task-specific mechanisms and connect them to their security consequences.
This is a small, exploratory evaluation of one model, not a claim that all LLMs exhibit the same behavior.
Why This Blind Spot Matters
Many evaluations assess whether an LLM produces relevant, safe, or factually correct responses. These assessments may overlook whether the model explicitly connects a particular technical mechanism to its actual security implications.
This distinction matters in cybersecurity assistance, security configuration, vulnerability analysis, and technical decision-making. A response can sound security-conscious without showing that the model has correctly identified the mechanism or explained its consequences.
The goal of this experiment is to make this potential gap measurable.
Model and setup
- Model:
meta-llama/Llama-3.2-3B-Instruct - Task domains: remote access, IoT, storage, cloud database access, API/webhooks, and development servers.
- Design: 10 tasks × 3 prompt framings (
low,high_neutral,high_lexical) × 8 stochastic generations = 240 planned/generated responses. - Generation settings in notebook:
max_new_tokens=2048,temperature=0.7,top_p=0.9,do_sample=True. - Scoring: regular-expression/keyword heuristics for generic caveats and task-specific mechanism mentions.
The evaluation_dataset.csv file contains the 30 task/framing prompt conditions, the expected critical mechanism, and the keyword patterns used by the notebook.
Results
| Risk framing | Mechanism-specific detection | Generic security caveats |
|---|---|---|
| Low risk | 53.75% | 98.75% |
| High risk, neutral wording | 60.00% | 98.75% |
| High risk, lexical cues | 62.50% | 98.75% |
The absolute percentage-point gaps between generic caveat detection and mechanism-specific detection were:
- Low risk: 45.00 percentage points
- High risk, neutral wording: 38.75 percentage points
- High risk, lexical cues: 36.25 percentage points
Mechanism-specific detection increased across the three framing conditions, while generic caveat detection remained unchanged.
These results suggest that generic security guidance and task-specific mechanism identification behave differently under the tested conditions.
Interpretation
The important finding is the substantial difference between the detection of generic security caveats and the detection of task-specific mechanisms.
The model frequently produced general security guidance, but mechanism-specific detection was considerably lower. Stronger risk framing was associated with a modest increase in mechanism-specific detection, yet it did not eliminate the observed gap.
This supports further investigation into whether standard safety-oriented evaluations adequately distinguish generic security language from precise, task-grounded security reasoning.
The results do not establish that the model lacks security understanding in general. They identify a specific behavior under the tasks, prompts, and scoring procedures used in this experiment.
Proposed Path Forward
Data curation
We can develop a targeted dataset of security tasks with explicit annotations for:
- The task-specific mechanism
- The relevant security consequence
- The causal relationship between the mechanism and consequence
- Acceptable explanations and common generic-but-incomplete responses
Include contrastive examples in which a generic warning is insufficient, even if the warning is technically reasonable.
Fine-tuning
We can explore supervised fine-tuning using examples that reward accurate, explicit connections between mechanisms and consequences. Preference optimization could further distinguish complete, task-grounded explanations from responses that rely only on generic security language.
Evaluation improvements
Another option is to evaluate generic guidance, mechanism identification, consequence identification, and mechanism-to-consequence reasoning as separate dimensions.
Moreover, we can use human-reviewed examples and semantic checks to validate automated scoring. Test on unseen tasks and paraphrased prompts to determine whether improvements generalize beyond the training examples.
Limitations
- The evaluation covers one open-weight model and a limited set of security-related tasks.
- Repeated generations from the same model and task are not equivalent to independent models or independent tasks.
- Automated or keyword-based scoring may miss valid paraphrases or incorrectly count loosely related terms.
- Detection rates depend on the prompt design, task selection, and scoring definitions.
Reproducibility and Artifacts
This Bucket is intended to provide the research documentation and evaluation artifacts for the experiment.
The accompanying notebook contains the experimental implementation and saved outputs. Refer to it for the exact prompts, scoring logic, and execution details.
Artifacts in this Bucket
README.md— research question, results, limitations, and proposed path forward.evaluation_notebook.ipynb— sanitized notebook copy with the hard-coded access token removed.evaluation_dataset.csv— 30 task/framing prompt conditions and scoring metadata.evaluation_summary.csv— summary figures from the notebook's later revised scoring cells.export_results_cell.py— code to export the actual run-level responses and scores from a live notebook runtime.requirements.txt— main Python dependencies.
- Total size
- 2.99 MB
- Files
- 8
- Last updated
- Oct 20
- Pre-warmed CDN
- US EU US EU