Close Menu
NCIJ Network NCIJ Network
    What's Hot

    France’s far-right National Rally fires policeman from security team over racist, sexist comments

    September 9, 2026

    Russia and Ukraine exchange strikes as two killed at Moldova border

    September 9, 2026

    Senior UK rabbis come out in support of sanctions on Israeli settlements | Foreign policy

    September 9, 2026
    Facebook X (Twitter) Instagram
    Trending
    • France’s far-right National Rally fires policeman from security team over racist, sexist comments
    • Russia and Ukraine exchange strikes as two killed at Moldova border
    • Senior UK rabbis come out in support of sanctions on Israeli settlements | Foreign policy
    • The choice facing Europeans
    • Apple iPhone Duo launch event: the 5 biggest announcements
    • How to pen test LLM, RAG and GenAI applications
    • How Tether’s $45 million crackdown drove Southeast Asian scam compounds into an ‘unfreezable’ decentralized stablecoin
    • Newfound fossils are spilling Denisovan secrets
    • 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
    Wednesday, September 9
    • 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

    Asylum applications plummet across EU as governments push for deportation hubs – POLITICO

    US says Chinese firms extracted billions of tokens from frontier AI models

    Veradigm warns of patient data breach after ransomware gang claims attack

    MFA’s Weakest Link: Account Recovery Is the New Attack Path

    Meta Launches Personal AI Agent, Muse, Emphasizes Safety and Privacy

    US Agencies Warn China Is Systematically Extracting Frontier AI Capabilities

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    France’s far-right National Rally fires policeman from security team over racist, sexist comments

    September 9, 2026

    Russia and Ukraine exchange strikes as two killed at Moldova border

    September 9, 2026

    Senior UK rabbis come out in support of sanctions on Israeli settlements | Foreign policy

    September 9, 2026

    The choice facing Europeans

    September 9, 2026
    Latest Posts

    Justice Dept. Subpoenas Times Freelancer in Effort to Identify Sources

    August 1, 2026

    Michigan joins Minnesota in reporting cyberattacks, with FBI investigating | Cybercrime News

    August 1, 2026

    Tiny aerosol particles could supercharge tropical storm clouds

    August 1, 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

    France’s far-right National Rally fires policeman from security team over racist, sexist comments

    September 9, 2026

    Russia and Ukraine exchange strikes as two killed at Moldova border

    September 9, 2026

    Senior UK rabbis come out in support of sanctions on Israeli settlements | Foreign policy

    September 9, 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.