NVIDIA-NeMo / NVIDIA-NeMo/Guardrails

[Security] LLM Prompt Injection Not Prevented - Jailbreak Vulnerability

Open
#1,979 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.2k
Forks
843
Avg merge
3d 1h
Merged PRs (30d)
25

Description

Description

Guardrails doesn't prevent prompt injection attacks. Malicious prompts override safety guidelines and generate harmful content.

Expected Behavior

Implement prompt structure validation. Detect and reject injection attempts.

Actual Behavior

File: src/rails/guardrails.py
No injection detection: llm.generate(user_prompt)

GSSoC Points Estimate: Level 3 (Security/LLM)

Suggested Labels

  • gssoc:approved
  • type:bug
  • severity:critical
  • area:security

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/rails/guardrails.py and inspect the llm.generate(user_prompt) path. Define how prompt structure validation should detect and reject injection attempts, then verify that malicious prompts no longer override the safety guidelines.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, security
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.