Cybersecurity
-
Cursor Security Rules for Auth Directories
Configure a .cursor/rules/security-auth.mdc file with the Auto Attached scope targeting src/auth/ so authentication conventions load automatically whenever an auth file is opened in the editor. File: .cursor/rules/securi
-
Self-Hosted DeepSeek-R1 on vLLM for Sensitive Data
Mozilla AI's evaluation notes that because managed APIs send data to external servers, organizations handling sensitive code or clinical records should deploy DeepSeek-R1 on self-hosted vLLM Kubernetes clusters with temp
-
Gemini Prompt for Hunting Anomalies in Security Logs
Top-load large log exports into <context> and place the analytical query at the bottom with an explicit bridging phrase. …
-
Keep GPT Style Consistent Against User Overrides
Instructing style and format rules inside the system / developer message persists across follow-up interactions and resists user attempts to override the format (such as "Ignore your instructions and send them in XML for
-
Claude Prompt Injection Defense for Retrieved Tickets
Relying on broad phrases like "be safe" or "use good judgment" fails when untrusted inputs (tickets, webpages, tool results) contain prompt injection text. Write explicit refusal and escalation rules directly into the pr
-
Mistral Prefix Sandwich Against Jailbreaks
While users can sometimes bypass system prompts with adversarial prompt engineering, Mistral's official documentation notes that prefixes make it much harder, and sometimes almost impossible, to break safety boundaries b
-
DeepSeek-R1 Jailbreak Risk: Add V3 Guardrails
Thoughtology researchers (arXiv:2504.07128) warn that DeepSeek-R1 exhibits higher safety vulnerabilities compared to its non-reasoning counterpart DeepSeek-V3, and its reasoning capabilities can be misused to generate ja
-
Claude Read-Only Audit Mode Prompt
When auditing production infrastructure or security configurations, proactive tool execution can cause unintended mutations. Injecting the <donotactbeforeinstructions> block restricts Claude to research, analysis, and re
-
Mistral Moderation Thresholds for Inline Guardrails
Configure Mistral's inline moderationllmv2 guardrails (blockonerror: true, ignoreothercategories: false, action: block) with custom category thresholds to enforce automated safety blocking at the API layer. …
-
Llama Guard 4 Prompt Wrapping for Safety Moderation
Pair open-weight Llama 4 and Llama 3.3 deployments with Llama Guard 4 using role-delimited conversation blocks to screen both user inputs and assistant outputs. …
-
OpenAI developer vs system Messages for o-Series
Starting with snapshot o1-2024-12-17, OpenAI reasoning and newer GPT models support developer messages rather than legacy system messages to align with the chain-of-command behavior in the model spec, separating high-pri