AI-Assisted Security Testing
An AI assistant can explain a strange response, draft fifty test cases, or read a diff in seconds. It can also invent a vulnerability, miss a real one, or leak the data you paste into it. This page shows five jobs that an assistant such as Claude or ChatGPT does well in a security test, and the checks that keep the tester in charge.
6 min read6 মিনিটে পড়া যায় · 6 sections6টি সেকশন · 8 sources8টি সোর্স · updated Nov 2026আপডেট: Nov 2026
The assistant proposes, you proveঅ্যাসিস্ট্যান্ট প্রস্তাব দেয়, আপনি প্রমাণ করেন
See what an assistant's claims do when you reproduce each one, and when you do not. Then see a hidden instruction in untrusted text.প্রতিটা দাবি আপনি নিজে ঘটিয়ে দেখলে আর না দেখলে কী হয়, তা দেখুন। তারপর অবিশ্বস্ত লেখায় লুকানো নির্দেশ দেখুন।
You’ll learnআপনি শিখবেন
- Why no secret goes into a promptprompt-এ কেন secret যায় না✓
- Why an assistant's claim is not yet a findingঅ্যাসিস্ট্যান্টের দাবি কেন এখনো finding নয়
- How a false claim reaches a reportভুয়া দাবি কীভাবে রিপোর্টে পৌঁছায়
- How untrusted text injects an instructionঅবিশ্বস্ত লেখা কীভাবে নির্দেশ ঢোকায়
- Why you review commands before approvalapprove-এর আগে command কেন দেখবেন
In plain words
An AI assistant speeds up the thinking parts of a security test: explaining a finding, drafting test cases, reviewing code, judging whether an alert is a false positive, and suggesting a fix. It cannot be the final judge.
Language models, Claude included, can sometimes generate text that is factually incorrect or inconsistent with the given context; Anthropic calls this hallucination Source 4সোর্স 4. OWASP lists the wider risk as LLM07:2026 Misinformation: an LLM produces incorrect, incomplete, unsupported, or misleading information that appears credible Source 7সোর্স 7. A related problem is overreliance: users trust the output too much and do not verify it Source 7সোর্স 7.
So this page follows one rule: the AI proposes, and the tester proves. Every finding that goes into a report is reproduced by hand, in the lab, before it counts.
সহজ English
An AI assistant makes the thinking parts of a security test faster: explaining a finding, writing test cases, reading code, deciding if an alert is a false alarm, and suggesting a fix. But it cannot have the last word.
AI models, Claude too, sometimes write things that are wrong or that do not match what you gave them. This is called hallucination Source 4সোর্স 4. OWASP names the bigger risk misinformation: the AI gives wrong, incomplete, or misleading information that looks believable Source 7সোর্স 7. A related problem is overreliance: people trust the answer too much and do not check it Source 7সোর্স 7.
So this page follows one rule: the AI suggests, and the tester proves. Every finding that goes into a report is repeated by hand, in the lab, before it counts.
বাংলা ব্যাখ্যা
AI assistant একটা security test-এর চিন্তার অংশগুলো দ্রুত করে: একটা finding ব্যাখ্যা করা, test case লেখা, code পড়া, একটা alert ভুয়া কি না বিচার করা, আর fix-এর পরামর্শ দেওয়া। কিন্তু শেষ কথা বলার অধিকার এর নেই।
AI model, Claude-ও, কখনো কখনো এমন লেখা তৈরি করে, যেটা ভুল বা আপনার দেওয়া তথ্যের সঙ্গে মেলে না। একে বলে hallucination Source 4সোর্স 4। OWASP বড় ঝুঁকিটার নাম দিয়েছে misinformation: AI এমন ভুল, অসম্পূর্ণ বা বিভ্রান্তিকর তথ্য দেয়, যেটা বিশ্বাসযোগ্য মনে হয় Source 7সোর্স 7। এর সঙ্গে যুক্ত সমস্যা হলো overreliance: মানুষ উত্তরের ওপর বেশি ভরসা করেন আর যাচাই করেন না Source 7সোর্স 7।
তাই এই পেজ একটা নিয়ম মেনে চলে: AI প্রস্তাব দেয়, আর টেস্টার প্রমাণ করেন। রিপোর্টে যাওয়ার আগে প্রতিটা finding ল্যাবে হাতে করে আবার ঘটিয়ে দেখা হয়।
How it works
Five jobs for an assistant
| Job | What you give the assistant | What you prove yourself |
|---|---|---|
| Vulnerability analysis | The finding and its evidence, with secrets removed | The finding, with one request that reproduces it |
| Test case generation | The specification, the roles, and the endpoints | That every case is in scope and covers allowed and denied users |
| Code review | The diff of a branch | Each reported issue, in the running app |
| False-positive check | The scanner alert and the raw request and response | The verdict, with your own request |
| Remediation advice | The vulnerable code and the OWASP cheat sheet | The fix, with a retest of the original attack |
For code review, Claude Code has a built-in /security-review command. It analyzes the changes on your current branch for security vulnerabilities: it reviews the diff between your branch and the default branch of origin, and it looks for risks such as injection, authentication issues, and data exposure. It needs an origin remote Source 1সোর্স 1.
For pull requests, Anthropic publishes a GitHub Action, claude-code-security-review, that uses Claude to analyze code changes for security vulnerabilities Source 3সোর্স 3. For a pull request it analyzes only the changed files, and it filters false positives to reduce noise Source 3সোর্স 3.
Three risks to manage
- Wrong answers. Anthropic's guide to reducing hallucinations suggests allowing Claude to say "I don't know", grounding answers in direct quotes, and verifying claims with citations Source 4সোর্স 4. Code suggestions need the same care: OWASP warns that a model can recommend non-existent (hallucinated) packages Source 7সোর্স 7.
- Sensitive data. Protected information includes personal data, health data, financial data, credentials and API keys, trade secrets, and privileged communications Source 6সোর্স 6. Never paste any of it into a prompt; this rule is the tutorial's own advice.
- Prompt injection. Prompt injection is an attempt to override or manipulate an AI assistant's instructions by inserting malicious text Source 2সোর্স 2. It can be indirect: the model reads external content, such as a website or a file, and that content changes its behavior Source 5সোর্স 5. In a security test, the content you analyze (a response, a page, a pull request) is untrusted. For untrusted content, Claude Code's guide says to review suggested commands before you approve them, to avoid piping untrusted content directly to Claude, and to verify proposed changes to critical files Source 2সোর্স 2. The security review Action is not hardened against prompt injection, and its README says to use it only to review trusted pull requests Source 3সোর্স 3.
সহজ English
Five jobs for an assistant.
- Explaining a finding. Give it the finding and the evidence, with secrets removed. Prove the finding yourself with one request.
- Writing test cases. Give it the specification, the roles, and the endpoints. Check that every case is in scope and covers both allowed and refused users.
- Reviewing code. Give it the changes of a branch. Check each issue it reports in the running app.
- Checking false alarms. Give it the alert and the raw request and response. Prove the answer with your own request.
- Suggesting fixes. Give it the weak code and the OWASP cheat sheet. Prove the fix by repeating the original attack.
For code review, Claude Code has a built-in command, /security-review. It looks at the changes on your current branch, compared with the main branch of origin, and looks for risks such as injection, login problems, and data leaks. It needs an origin remote Source 1সোর্স 1.
For pull requests, Anthropic offers a GitHub Action, claude-code-security-review, that uses Claude to look for security flaws in code changes Source 3সোর্স 3. On a pull request it looks only at the changed files, and it filters out false alarms Source 3সোর্স 3.
Three risks to manage.
- Wrong answers. Anthropic's guide says: let Claude say "I don't know", base answers on direct quotes, and check claims with citations Source 4সোর্স 4. Code tips need the same care: OWASP warns that a model can recommend packages that do not exist Source 7সোর্স 7.
- Private data. Protected information includes personal data, health data, money details, passwords and keys, trade secrets, and private communications Source 6সোর্স 6. Never type any of it into a prompt; this rule is the tutorial's own advice.
- Prompt injection. This is an attempt to take over the assistant's instructions with harmful text Source 2সোর্স 2. It can come in through something the model reads, such as a website or a file Source 5সোর্স 5. In a security test, what you analyze (a response, a page, a pull request) cannot be trusted. Claude Code's guide says: check suggested commands before you approve them, do not pipe untrusted content straight into Claude, and check proposed changes to important files Source 2সোর্স 2. The review Action is not protected against prompt injection. Its README says to use it only on pull requests you trust Source 3সোর্স 3.
বাংলা ব্যাখ্যা
Assistant-এর পাঁচটা কাজ।
- Finding ব্যাখ্যা করা। Finding আর তার প্রমাণ দিন, secret সরিয়ে। একটা request দিয়ে finding নিজে প্রমাণ করুন।
- Test case লেখা। Specification, role আর endpoint দিন। দেখুন প্রতিটা case scope-এর ভেতরে কি না, আর অনুমতি পাওয়া ও না-পাওয়া দুই ধরনের user-ই আছে কি না।
- Code পর্যালোচনা। একটা branch-এর পরিবর্তনগুলো দিন। এটা যে সমস্যা বলে, প্রতিটা চালু app-এ যাচাই করুন।
- ভুয়া alert যাচাই। Alert আর মূল request ও response দিন। নিজের request দিয়ে উত্তরটা প্রমাণ করুন।
- Fix-এর পরামর্শ। দুর্বল code আর OWASP cheat sheet দিন। মূল আক্রমণটা আবার চালিয়ে fix প্রমাণ করুন।
Code পর্যালোচনার জন্য Claude Code-এ একটা built-in command আছে: /security-review। এটা আপনার বর্তমান branch-এর পরিবর্তনগুলো origin-এর মূল branch-এর সঙ্গে তুলনা করে দেখে, আর injection, login-এর সমস্যা আর data ফাঁসের মতো ঝুঁকি খোঁজে। এর জন্য একটা origin remote লাগে Source 1সোর্স 1।
Pull request-এর জন্য Anthropic একটা GitHub Action দেয়, claude-code-security-review, যেটা Claude দিয়ে code-এর পরিবর্তনে security দুর্বলতা খোঁজে Source 3সোর্স 3। একটা pull request-এ এটা শুধু বদলানো ফাইলগুলো দেখে, আর ভুয়া alert ছেঁকে বাদ দেয় Source 3সোর্স 3।
যে তিনটা ঝুঁকি সামলাতে হবে।
- ভুল উত্তর। Anthropic-এর গাইড বলে: Claude-কে "I don't know" বলার সুযোগ দিন, উত্তর সরাসরি উদ্ধৃতির ওপর দাঁড় করান, আর citation দিয়ে দাবি যাচাই করুন Source 4সোর্স 4। Code-এর পরামর্শেও একই সতর্কতা লাগে: OWASP সতর্ক করে যে model অস্তিত্বহীন package-এর নাম সুপারিশ করতে পারে Source 7সোর্স 7।
- গোপন data। সুরক্ষিত তথ্যের মধ্যে আছে ব্যক্তিগত data, স্বাস্থ্য-তথ্য, আর্থিক data, credential ও API key, ব্যবসার গোপন তথ্য, আর গোপন যোগাযোগ Source 6সোর্স 6। এমন কিছু prompt-এ লিখবেন না; এটা এই টিউটোরিয়ালের নিজের পরামর্শ।
- Prompt injection। এটা ক্ষতিকর লেখা ঢুকিয়ে assistant-এর নির্দেশনা দখল করার চেষ্টা Source 2সোর্স 2। Model যা পড়ে, যেমন একটা website বা ফাইল, তার ভেতর দিয়েও এটা আসতে পারে Source 5সোর্স 5। Security test-এ আপনি যা বিশ্লেষণ করেন (একটা response, একটা পেজ, একটা pull request), তার কোনোটাই বিশ্বাসযোগ্য নয়। Claude Code-এর গাইড বলে: approve করার আগে প্রস্তাবিত command দেখে নিন, অবিশ্বস্ত content সরাসরি Claude-এ pipe করবেন না, আর গুরুত্বপূর্ণ ফাইলের প্রস্তাবিত পরিবর্তন যাচাই করুন Source 2সোর্স 2। Review Action prompt injection-এর বিরুদ্ধে সুরক্ষিত নয়। এর README বলে, শুধু বিশ্বস্ত pull request-এ এটা ব্যবহার করুন Source 3সোর্স 3।
In practice
1. Ask about a finding, with the evidence. This prompt is the tutorial's own example. It removes the token and asks for quotes and for "I don't know", as Anthropic's guide suggests Source 4সোর্স 4:
Context: an authorized test of my practice lab (OWASP Juice Shop on localhost).
Finding: ZAP reports possible SQL injection on GET /api/search?q=
Evidence: the request and the response below. The session token is replaced by <token>.
1. Explain what the alert means and what an attacker could do with it.
2. Give me one Burp Repeater request that would confirm or reject it.
3. Quote the part of the response that supports each point.
4. If the evidence is not enough, say "I don't know".2. Review a branch before it merges. Open Claude Code in the repository, on the feature branch, and run /security-review. It compares the branch with the default branch of origin Source 1সোর্স 1. Treat each issue as a lead: reproduce it in the lab before you report it.
3. Check a false positive. Give the assistant the alert and the raw request and response, and ask for the strongest case for and against. Then send your own request in Repeater. Your request decides, not the answer.
4. Ask for a fix, then check it. Ask for the fix of a query built from strings, with the OWASP SQL Injection Prevention Cheat Sheet as the reference. Before you install any library that the answer names, confirm that it exists and that it is the one you expect: OWASP describes attackers who publish malicious packages under names that coding assistants invent Source 8সোর্স 8.
সহজ English
- Ask about a finding, with the evidence. The Technical view has an example prompt. It removes the token, and it asks for quotes and for "I don't know", as Anthropic's guide suggests Source 4সোর্স 4.
- Review a branch before it is merged. Open Claude Code in the project, on your feature branch, and run
/security-review. It compares your branch with the main branch oforiginSource 1সোর্স 1. Treat each issue as a lead: repeat it in the lab before you report it. - Check a false alarm. Give the assistant the alert and the raw request and response. Ask for the best reasons for and against. Then send your own request in Repeater. Your request decides, not the answer.
- Ask for a fix, then check it. Ask for a fix of a query that is glued together from text, with the OWASP SQL Injection Prevention Cheat Sheet as the guide. Before you install a library that the answer names, check that it exists and that it is the right one. OWASP describes attackers who publish harmful packages under names that coding assistants make up Source 8সোর্স 8.
বাংলা ব্যাখ্যা
- প্রমাণসহ একটা finding নিয়ে জিজ্ঞেস করুন। Technical view-এ একটা উদাহরণ prompt আছে। এটা token সরিয়ে দেয়, আর Anthropic-এর গাইডের পরামর্শমতো উদ্ধৃতি আর "I don't know" চায় Source 4সোর্স 4।
- Merge-এর আগে branch পর্যালোচনা করুন। Project-এ, আপনার feature branch-এ Claude Code খুলে
/security-reviewচালান। এটা আপনার branch-কেorigin-এর মূল branch-এর সঙ্গে তুলনা করে Source 1সোর্স 1। প্রতিটা সমস্যাকে একটা সূত্র হিসেবে ধরুন: রিপোর্ট করার আগে ল্যাবে আবার ঘটিয়ে দেখুন। - ভুয়া alert যাচাই করুন। Assistant-কে alert আর মূল request ও response দিন। পক্ষে আর বিপক্ষে সবচেয়ে শক্ত যুক্তি চান। তারপর Repeater-এ নিজের request পাঠান। সিদ্ধান্ত নেবে আপনার request, উত্তর নয়।
- Fix চান, তারপর যাচাই করুন। Text জুড়ে বানানো একটা query-র fix চান, OWASP SQL Injection Prevention Cheat Sheet-কে নির্দেশিকা ধরে। উত্তরে যে library-র নাম আসে, install করার আগে দেখুন সেটা সত্যিই আছে কি না আর সঠিকটা কি না। OWASP এমন আক্রমণকারীদের কথা বলে, যাঁরা coding assistant-এর বানানো নামে ক্ষতিকর package প্রকাশ করেন Source 8সোর্স 8।
Common mistakes
- Pasting secrets or customer data into a chat. Credentials and personal data are sensitive information Source 6সোর্স 6. Replace them with placeholders such as
<token>. - Reporting what the AI said without reproducing it. Overreliance is the problem that OWASP describes: trusting the output without verifying it Source 7সোর্স 7.
- Running the review Action on pull requests from outside contributors. The Action is not hardened against prompt injection and is meant for trusted pull requests Source 3সোর্স 3.
- Letting an agent run what an untrusted page tells it. Review suggested commands before you approve them, and do not pipe untrusted content straight to Claude Source 2সোর্স 2.
- Installing a library because an answer named it. A model can suggest packages that do not exist Source 7সোর্স 7.
- Asking the model to be sure. Allow "I don't know" instead Source 4সোর্স 4.
সহজ English
- Pasting secrets or customer data into a chat. Passwords, keys, and personal data are private information Source 6সোর্স 6. Replace them with placeholders such as
<token>. - Reporting what the AI said without checking it. This is the overreliance that OWASP warns about: trusting the answer without checking it Source 7সোর্স 7.
- Running the review Action on pull requests from strangers. The Action is not protected against prompt injection and is meant for pull requests you trust Source 3সোর্স 3.
- Letting an agent run what an untrusted page tells it. Check suggested commands before you approve them, and do not pipe untrusted content straight into Claude Source 2সোর্স 2.
- Installing a library because an answer named it. A model can name packages that do not exist Source 7সোর্স 7.
- Asking the model to be sure. Let it say "I don't know" instead Source 4সোর্স 4.
বাংলা ব্যাখ্যা
- Chat-এ secret বা গ্রাহকের data পেস্ট করা। Password, key আর ব্যক্তিগত data গোপন তথ্য Source 6সোর্স 6। এগুলোর বদলে
<token>-এর মতো placeholder দিন। - AI যা বলেছে, যাচাই না করে রিপোর্ট করা। এটাই OWASP-এর বলা overreliance: যাচাই না করে উত্তরে ভরসা করা Source 7সোর্স 7।
- বাইরের কারো pull request-এ review Action চালানো। Action-টা prompt injection-এর বিরুদ্ধে সুরক্ষিত নয়, আর এটা বিশ্বস্ত pull request-এর জন্য Source 3সোর্স 3।
- অবিশ্বস্ত পেজ যা বলে, agent-কে তা চালাতে দেওয়া। Approve করার আগে প্রস্তাবিত command দেখে নিন, আর অবিশ্বস্ত content সরাসরি Claude-এ pipe করবেন না Source 2সোর্স 2।
- উত্তরে নাম এসেছে বলেই library install করা। Model অস্তিত্বহীন library-র নামও বলতে পারে Source 7সোর্স 7।
- Model-কে নিশ্চিত হতে বলা। বরং "I don't know" বলার সুযোগ দিন Source 4সোর্স 4।
What a tester can check
Tutorial advice
This list is the tutorial's own advice, not a fact from a source.
- Every AI-assisted finding has a manual reproduction attached in the report: the request, the response, and the time.
- The prompts and the answers are kept with the test log, so that a reviewer can see what the AI was told.
- No prompt holds a secret or personal data. Search the saved prompts for tokens, passwords, and email addresses before you share them.
- Every suggested package is checked in the official registry before it is installed.
- The severity is the tester's. Rate each finding yourself, with the method of the capstone, not with the AI's label.
সহজ English
Tutorial advice
This list is the tutorial's own advice, not a fact from a source.
- Every AI-assisted finding has a manual repeat in the report: the request, the response, and the time.
- Keep the prompts and the answers with the test log, so that a reviewer can see what the AI was told.
- No prompt holds a secret or personal data. Search the saved prompts for tokens, passwords, and email addresses before you share them.
- Check every suggested package in the official registry before you install it.
- The severity is yours. Rate each finding yourself, with the method of the capstone, not with the AI's label.
বাংলা ব্যাখ্যা
Tutorial advice
এই তালিকা টিউটোরিয়ালের নিজের পরামর্শ, কোনো source থেকে নেওয়া তথ্য নয়।
- AI-এর সাহায্যে পাওয়া প্রতিটা finding-এর হাতে করা পুনরাবৃত্তি রিপোর্টে থাকবে: request, response আর সময়।
- Prompt আর উত্তর রেখে দিন test log-এর সঙ্গে, যাতে একজন reviewer দেখতে পারেন AI-কে কী বলা হয়েছিল।
- কোনো prompt-এ secret বা ব্যক্তিগত data নেই। শেয়ার করার আগে সংরক্ষিত prompt-এ token, password আর email address খুঁজে দেখুন।
- প্রস্তাবিত প্রতিটা package যাচাই করুন অফিসিয়াল registry-তে, install করার আগে।
- Severity আপনার। প্রতিটা finding-এর মাত্রা নিজে ঠিক করুন, capstone-এর পদ্ধতিতে, AI-এর দেওয়া label দিয়ে নয়।
Key words
| Term | Meaning |
|---|---|
| Hallucination | Model output that is factually wrong or does not match the given context. |
| Misinformation | OWASP LLM07:2026: incorrect, incomplete, unsupported, or misleading output that appears credible. |
| Overreliance | Trusting AI output without verifying it. |
| Prompt injection | Text that tries to override or manipulate the assistant's instructions. |
| Indirect prompt injection | Prompt injection that arrives in content the model reads, such as a web page or a file. |
/security-review | A Claude Code command that reviews the changes of the current branch for security issues. |
| False positive | An alert for a flaw that is not really there. |
| Sensitive information | Data such as credentials, personal data, health records, and confidential business data. |