Close Menu
NCIJ Network NCIJ Network
    What's Hot

    This 150-million-year-old bird had dinosaur teeth and a strange secret

    October 24, 2026

    Protests sweep across Europe from France to Albania, Italy, Spain and Portugal.

    October 24, 2026

    Healey’s first budget to include big devolution package to boost growth | Budget 2026

    October 24, 2026
    Facebook X (Twitter) Instagram
    Trending
    • This 150-million-year-old bird had dinosaur teeth and a strange secret
    • Protests sweep across Europe from France to Albania, Italy, Spain and Portugal.
    • Healey’s first budget to include big devolution package to boost growth | Budget 2026
    • Abercynon woman, 93, waits 10 hours on floor for an ambulance
    • Almost 1,000 arrested as clashes follow another day of mass protests across France
    • Google Says Gmail and Photos Data Shared With AI Search Could Be Used for Targeted Ads
    • Scientists discover a hidden switch that burns fat and blocks new fat cells
    • Mass sloth deaths prompt US bill calling for import ban
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Saturday, October 24
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Cybersecurity

    How to pen test LLM, RAG and GenAI applications

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKSeptember 9, 2026 Cybersecurity No Comments2 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Use Python to make the attack repeatable

    Manual probing is valuable for discovery, but it is a poor regression method. A small Python harness can define an objective, generate approved mutations, send them through the same interface used by clients, capture retrieval and tool traces, score the result and preserve evidence. The code should run only against authorized targets and should stop on unexpected side effects.

    for case in approved_cases:
        for prompt in mutate(case.seed):
            result = sandbox.send(
                prompt, identity=case.test_identity,
                trace=True, max_cost=case.cost_limit,
            )
            finding = score_outcome(result, case.objective, case.canaries)
            evidence.write(case.id, prompt, result, finding)
            if finding.critical or result.unexpected_side_effect:
                emergency_stop()
    

    A public reference implementation of this loop runs these same four functions against a local, deliberately vulnerable RAG and tool-calling target, so every finding it reports is reproducible by running a test suite rather than asserted.

    The framework around the loop matters more than the loop itself. Keep seeds and mutations under version control. Record the model and prompt versions, retrieved source IDs, identity, tool calls, latency, token use and policy state. Score concrete outcomes — a forbidden record retrieved, a file written, a tool called or an approval bypassed — rather than relying only on another model to judge whether a response sounds unsafe.

    Applications GenAI LLM pen RAG test
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    Google Says Gmail and Photos Data Shared With AI Search Could Be Used for Targeted Ads

    Machine speed attacks require machine speed detection and response

    LiteLLM release pipeline hacked to distribute info-stealer malware

    HPE patches eight max severity RCE and auth bypass AOS flaws

    Leaked LiteLLM Master Key Let Attackers Steal GitHub Tokens and Hijack Release Pipeline

    BlackX UEFI bootkit exploits Baton Drop flaw to bypass Secure Boot

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    This 150-million-year-old bird had dinosaur teeth and a strange secret

    October 24, 2026

    Protests sweep across Europe from France to Albania, Italy, Spain and Portugal.

    October 24, 2026

    Healey’s first budget to include big devolution package to boost growth | Budget 2026

    October 24, 2026

    Abercynon woman, 93, waits 10 hours on floor for an ambulance

    October 24, 2026
    Latest Posts

    Google AI health coach to use Abbott glucose data

    August 14, 2026

    CMF hit the balance between cheap and good clip earbuds

    August 14, 2026

    David Hearn’s Lawyers Ask Court to Bar Future Reflecting Pool Charges

    August 14, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    This 150-million-year-old bird had dinosaur teeth and a strange secret

    October 24, 2026

    Protests sweep across Europe from France to Albania, Italy, Spain and Portugal.

    October 24, 2026

    Healey’s first budget to include big devolution package to boost growth | Budget 2026

    October 24, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.