Security Basics and a Practice Lab
Security testing asks one question: can someone do something that they should not be able to do? This page explains the words that every security test uses, why a penetration test starts with written permission, and how to build a safe practice lab on your own machine.
6 min read6 মিনিটে পড়া যায় · 6 sections6টি সেকশন · 15 sources15টি সোর্স · updated Nov 2026আপডেট: Nov 2026
In plain words
Security testing checks that a system protects its information. NIST describes information security as the protection of information and systems from unauthorized access, use, disclosure, disruption, modification, or destruction, in order to provide three things: confidentiality, integrity, and availability Source 1সোর্স 1.
| Goal | What it means | A question a tester asks |
|---|---|---|
| Confidentiality | Authorized limits on who can access and disclose information are kept Source 2সোর্স 2 | Can a user read data that is not theirs? |
| Integrity | Information is guarded against improper change or destruction Source 3সোর্স 3 | Can a user change a price or delete a record that is not theirs? |
| Availability | Information can be reached and used on time and reliably Source 4সোর্স 4 | Can one request take the service down for everyone? |
Two more words come up in every test. A vulnerability is a weakness in a system, its security procedures, its internal controls, or its implementation that a threat source could exploit or trigger Source 5সোর্স 5. Risk measures how much a possible event threatens you. It is typically a function of the harm that the event would cause and how likely it is to happen Source 6সোর্স 6.
A penetration test goes further than a checklist. The testers mimic real-world attacks to find ways around the security features of an application, system, or network. It often means real attacks on real systems and data, with the same tools and techniques that attackers use Source 7সোর্স 7. Because the attacks are real, every test in this module starts with written permission.
সহজ English
Security testing checks that a system keeps its information safe. NIST says that information security protects information and systems from people who are not allowed to see, use, share, disturb, change, or destroy them. It has three goals: confidentiality, integrity, and availability Source 1সোর্স 1.
- Confidentiality: only the allowed people can see or share the information Source 2সোর্স 2. A tester asks: can a user read data that is not theirs?
- Integrity: nobody can change or destroy the information in a way that is not allowed Source 3সোর্স 3. A tester asks: can a user change a price or delete someone else's record?
- Availability: people can reach and use the information when they need it Source 4সোর্স 4. A tester asks: can one request stop the service for everyone?
A vulnerability is a weak spot in a system, its rules, its controls, or the way it was built, that an attacker could use Source 5সোর্স 5. Risk says how much a possible event threatens you. It usually depends on how bad the harm would be and how likely the event is Source 6সোর্স 6.
A penetration test copies real attacks to find ways around a system's security. It often uses real attacks on real systems and data, with the same tools that attackers use Source 7সোর্স 7. Because the attacks are real, every test in this module starts with written permission.
বাংলা ব্যাখ্যা
Security testing যাচাই করে যে একটা সিস্টেম তার তথ্য সুরক্ষিত রাখে কি না। NIST-এর ভাষায় information security মানে তথ্য আর সিস্টেমকে অননুমোদিত access, ব্যবহার, প্রকাশ, বিঘ্ন, পরিবর্তন বা ধ্বংস থেকে রক্ষা করা। এর তিনটা লক্ষ্য: confidentiality, integrity আর availability Source 1সোর্স 1।
- Confidentiality: শুধু অনুমতি পাওয়া মানুষই তথ্য দেখতে বা প্রকাশ করতে পারেন Source 2সোর্স 2। একজন টেস্টার জিজ্ঞেস করেন: একজন user কি অন্যের data পড়তে পারেন?
- Integrity: অনুমতি ছাড়া কেউ তথ্য বদলাতে বা নষ্ট করতে পারেন না Source 3সোর্স 3। টেস্টার জিজ্ঞেস করেন: একজন user কি দাম বদলাতে বা অন্যের record মুছতে পারেন?
- Availability: দরকারের সময় মানুষ তথ্য পেতে ও ব্যবহার করতে পারেন Source 4সোর্স 4। টেস্টার জিজ্ঞেস করেন: একটা request কি সবার জন্য service বন্ধ করে দিতে পারে?
Vulnerability হলো সিস্টেম, তার নিয়ম, তার নিয়ন্ত্রণ বা তার তৈরির পদ্ধতিতে এমন একটা দুর্বলতা, যেটা একজন আক্রমণকারী কাজে লাগাতে পারেন Source 5সোর্স 5। Risk বলে একটা সম্ভাব্য ঘটনা আপনাকে কতটা হুমকিতে ফেলে। সাধারণত এটা নির্ভর করে ক্ষতি কত বড় হবে আর ঘটনাটা কতটা সম্ভাব্য, তার ওপর Source 6সোর্স 6।
Penetration test আসল আক্রমণের মতো করে সিস্টেমের নিরাপত্তা এড়ানোর পথ খোঁজে। প্রায়ই এতে আসল সিস্টেম আর আসল data-র ওপর আসল আক্রমণ চালানো হয়, আক্রমণকারীদের মতো একই tool দিয়ে Source 7সোর্স 7। আক্রমণ আসল বলেই এই মডিউলের প্রতিটা টেস্ট লিখিত অনুমতি দিয়ে শুরু হয়।
How it works
Permission and scope come first
NIST SP 800-115 says that each assessment should have an assessment plan, whatever its scope and whoever does it. The plan gives the rules and boundaries that the testers must keep, and it protects the organization from incidents such as an accidental outage or a leak of sensitive information Source 8সোর্স 8. The plan answers five questions: what the scope is, who is authorized to test, what the logistics are, how sensitive data is handled, and what happens if an incident occurs Source 8সোর্স 8.
The plan names the systems that may be tested. It also lists the systems that may not be tested, at least by IP address Source 8সোর্স 8. If a part of the network belongs to a third party, that owner usually must also consent in writing Source 8সোর্স 8. Some teams also write rules of engagement (ROE). The ROE gives the testers authorization for activities that the organization's policies usually prohibit, such as attacks to compromise systems Source 8সোর্স 8.
A lab is a place where you have permission
On your own machine, you own every target. A practice lab has three parts:
- A vulnerable target. OWASP Juice Shop is an insecure web application for security training. It has vulnerabilities from the entire OWASP Top Ten, and other flaws found in real applications Source 14সোর্স 14.
- A toolbox. Kali Linux is an open-source, Debian-based Linux distribution for penetration testing and security auditing, with several hundred tools Source 9সোর্স 9. Kali publishes official Docker images, updated once a week, and
kalilinux/kali-rollingis the main one Source 10সোর্স 10. - A private network. On a user-defined Docker bridge network, containers resolve each other by name or alias Source 11সোর্স 11.
Keep the target off your network
Publishing a container port is insecure by default: the port is reachable from the outside world, not only from your machine. If the publish flag includes 127.0.0.1, only the Docker host can reach the port Source 12সোর্স 12. The Juice Shop instructions use this form: -p 127.0.0.1:3000:3000 Source 15সোর্স 15.
সহজ English
Permission and scope come first. NIST SP 800-115 says that every security assessment should have a plan. The plan gives the rules and the limits that the testers must keep. It also protects the company from accidents, such as a system going down or private data leaking Source 8সোর্স 8. The plan answers five questions: what is in scope, who may test, how the test runs, how private data is handled, and what to do if something goes wrong Source 8সোর্স 8.
The plan names the systems that may be tested, and it lists the systems that may not be tested Source 8সোর্স 8. If another company owns part of the network, that company usually must agree in writing too Source 8সোর্স 8. Some teams also write rules of engagement (ROE). The ROE gives the testers permission for actions that the company's rules usually forbid, such as attacks that break into systems Source 8সোর্স 8.
A lab is a place where you have permission. On your own machine, every target is yours. A practice lab has three parts:
- A weak target. OWASP Juice Shop is a web app that is insecure on purpose, made for security training. It has flaws from the whole OWASP Top Ten and more Source 14সোর্স 14.
- A toolbox. Kali Linux is a free Linux system, based on Debian, for penetration testing. It has several hundred tools Source 9সোর্স 9. Kali has official Docker images that are updated every week. The main one is
kalilinux/kali-rollingSource 10সোর্স 10. - A private network. On a Docker network that you create, containers can find each other by name Source 11সোর্স 11.
Keep the target off your network. When you publish a container port, other machines can reach it too, by default. If you add 127.0.0.1, only your own machine can reach it Source 12সোর্স 12. The Juice Shop instructions do this: -p 127.0.0.1:3000:3000 Source 15সোর্স 15.
বাংলা ব্যাখ্যা
অনুমতি আর scope সবার আগে। NIST SP 800-115 বলে, প্রতিটা security assessment-এর একটা plan থাকা উচিত। Plan-এ থাকে সেই নিয়ম আর সীমা, যেগুলো টেস্টারদের মানতে হবে। এটা প্রতিষ্ঠানকে দুর্ঘটনা থেকেও রক্ষা করে, যেমন হঠাৎ সিস্টেম বন্ধ হওয়া বা গোপন তথ্য ফাঁস হওয়া Source 8সোর্স 8। Plan পাঁচটা প্রশ্নের উত্তর দেয়: scope কী, কে টেস্ট করতে পারবেন, টেস্ট কীভাবে চলবে, গোপন data কীভাবে সামলানো হবে, আর কিছু ভুল হলে কী করতে হবে Source 8সোর্স 8।
Plan-এ লেখা থাকে কোন সিস্টেম টেস্ট করা যাবে, আর কোনগুলো যাবে না Source 8সোর্স 8। Network-এর কোনো অংশ অন্য কোনো প্রতিষ্ঠানের হলে, সাধারণত তাদেরও লিখিত সম্মতি লাগে Source 8সোর্স 8। কিছু টিম rules of engagement (ROE)-ও লেখে। ROE টেস্টারদের এমন কাজের অনুমতি দেয়, যেটা প্রতিষ্ঠানের নিয়মে সাধারণত নিষেধ, যেমন সিস্টেমে ঢোকার জন্য আক্রমণ Source 8সোর্স 8।
ল্যাব হলো এমন জায়গা, যেখানে আপনার অনুমতি আছে। নিজের machine-এ প্রতিটা target আপনার নিজের। একটা প্র্যাকটিস ল্যাবের তিনটা অংশ:
- একটা দুর্বল target। OWASP Juice Shop ইচ্ছা করে অনিরাপদ বানানো একটা web app, security training-এর জন্য। এতে পুরো OWASP Top Ten-এর দুর্বলতা আছে, আরও কিছুও আছে Source 14সোর্স 14।
- একটা toolbox। Kali Linux হলো Debian-ভিত্তিক একটা open-source Linux, penetration testing-এর জন্য। এতে কয়েকশো tool আছে Source 9সোর্স 9। Kali-র অফিসিয়াল Docker image আছে, প্রতি সপ্তাহে আপডেট হয়। মূল image হলো
kalilinux/kali-rollingSource 10সোর্স 10। - একটা আলাদা network। আপনার বানানো Docker network-এ container-গুলো একে অন্যকে নাম দিয়ে খুঁজে পায় Source 11সোর্স 11।
Target-কে আপনার network থেকে দূরে রাখুন। Container-এর port publish করলে ডিফল্টভাবে অন্য machine থেকেও সেটায় পৌঁছানো যায়। 127.0.0.1 যোগ করলে শুধু আপনার নিজের machine সেটায় পৌঁছাতে পারে Source 12সোর্স 12। Juice Shop-এর নির্দেশনাও এটাই করে: -p 127.0.0.1:3000:3000 Source 15সোর্স 15।
In practice
Build the lab with three commands:
# 1. A private network for the lab
docker network create lab
# 2. The target: on the lab network, and on port 3000 of this machine only
docker run -d --name juice --network lab -p 127.0.0.1:3000:3000 bkimminich/juice-shop
# 3. The toolbox: Kali on the same network, removed when you exit
docker run --rm -it --network lab kalilinux/kali-rollingdocker network createmakes a user-defined bridge network Source 11সোর্স 11.-druns the container in the background,--namegives it a name,--networkconnects it to a network,-ppublishes a port to the host,--rmremoves the container when it exits,-ikeeps STDIN open, and-tallocates a terminal Source 13সোর্স 13.- The Juice Shop image is
bkimminich/juice-shop. Browse tohttp://localhost:3000to open it Source 15সোর্স 15.
The Kali image comes without the default set of tools. Install it first, inside the Kali container Source 10সোর্স 10:
apt update && apt -y install kali-linux-headlessFrom the Kali container, the target is http://juice:3000, because containers on the same user-defined network resolve each other by name Source 11সোর্স 11.
Then write the scope down, even for a lab. This example is the tutorial's own:
Scope: my practice lab, 2026-11-15
In scope: http://localhost:3000 and http://juice:3000 (OWASP Juice Shop in Docker)
Out of scope: every other address: my router, my office network, any site on the internet
Stop if: anything outside the lab answers, or the laptop becomes slowসহজ English
Build the lab with the three commands in the Technical view:
docker network create labmakes a private Docker network Source 11সোর্স 11.- The second command starts Juice Shop in the background, with the name
juice, on thelabnetwork, and on port 3000 of your own machine only.-druns it in the background,--namenames it,--networkputs it on a network, and-ppublishes a port Source 13সোর্স 13. Openhttp://localhost:3000in your browser Source 15সোর্স 15. - The third command starts Kali on the same network.
--rmdeletes the container when you exit, and-iand-tgive you a working terminal Source 13সোর্স 13.
The Kali image comes without its usual tools. Inside the Kali container, install them with apt update && apt -y install kali-linux-headless Source 10সোর্স 10.
From Kali, the target is http://juice:3000. Containers on the same network you made can find each other by name Source 11সোর্স 11.
Then write the scope down, even for a lab. The Technical view has an example: what is in scope, what is out of scope, and when to stop.
বাংলা ব্যাখ্যা
Technical view-এর তিনটা command দিয়ে ল্যাব বানান:
docker network create labএকটা আলাদা Docker network বানায় Source 11সোর্স 11।- দ্বিতীয় command Juice Shop-কে background-এ চালু করে,
juiceনামে,labnetwork-এ, আর শুধু আপনার নিজের machine-এর port 3000-এ।-dbackground-এ চালায়,--nameনাম দেয়,--networknetwork-এ যুক্ত করে, আর-pport publish করে Source 13সোর্স 13। Browser-এhttp://localhost:3000খুলুন Source 15সোর্স 15। - তৃতীয় command একই network-এ Kali চালু করে। আপনি বের হলে
--rmcontainer মুছে দেয়, আর-iও-tআপনাকে একটা চালু terminal দেয় Source 13সোর্স 13।
Kali image-এ তার স্বাভাবিক tool-গুলো থাকে না। Kali container-এর ভেতরে apt update && apt -y install kali-linux-headless দিয়ে সেগুলো install করুন Source 10সোর্স 10।
Kali থেকে target হলো http://juice:3000। আপনার বানানো একই network-এর container-গুলো একে অন্যকে নাম দিয়ে খুঁজে পায় Source 11সোর্স 11।
এরপর scope লিখে রাখুন, ল্যাবের জন্যও। Technical view-এ একটা উদাহরণ আছে: কী scope-এর ভেতরে, কী বাইরে, আর কখন থামতে হবে।
Common mistakes
- Testing without written permission, or outside it. SP 800-115 puts both the systems that may be tested and the systems that may not into the plan Source 8সোর্স 8. For what the law says, see Cyber Law and Data Protection.
- Publishing a vulnerable app to everyone. A published port is reachable from the outside world by default. Add
127.0.0.1to the publish flag Source 12সোর্স 12. - Running a training target next to real data. Juice Shop is insecure on purpose Source 14সোর্স 14. Keep it in the lab.
- Reporting a scanner alert as a confirmed flaw. A vulnerability scanner checks only for the possible existence of a vulnerability. The attack phase of a penetration test exploits it to confirm that it exists Source 8সোর্স 8.
- Mixing up vulnerability and risk. A vulnerability is a weakness Source 5সোর্স 5. Risk also weighs the harm and the likelihood Source 6সোর্স 6.
- Expecting every tool in the Kali image. The Docker images do not come with the default metapackage Source 10সোর্স 10.
সহজ English
- Testing without written permission, or outside it. SP 800-115 puts in the plan both the systems that may be tested and the ones that may not Source 8সোর্স 8. For the law, see Cyber Law and Data Protection.
- Opening a weak app to everyone. A published port can be reached from other machines by default. Add
127.0.0.1Source 12সোর্স 12. - Running a training target next to real data. Juice Shop is insecure on purpose Source 14সোর্স 14. Keep it in the lab.
- Reporting a scanner alert as a proven flaw. A scanner only says that a flaw might exist. A penetration test tries the attack to prove it Source 8সোর্স 8.
- Mixing up vulnerability and risk. A vulnerability is a weak spot Source 5সোর্স 5. Risk also counts the harm and how likely it is Source 6সোর্স 6.
- Expecting every tool in the Kali image. The Docker images come without the usual tool set Source 10সোর্স 10.
বাংলা ব্যাখ্যা
- লিখিত অনুমতি ছাড়া, বা অনুমতির বাইরে টেস্ট করা। SP 800-115 অনুযায়ী plan-এ দুটোই থাকে: কোন সিস্টেম টেস্ট করা যাবে, আর কোনগুলো যাবে না Source 8সোর্স 8। আইন কী বলে, জানতে Cyber Law and Data Protection দেখুন।
- দুর্বল app সবার জন্য খুলে দেওয়া। ডিফল্টভাবে publish করা port অন্য machine থেকেও পাওয়া যায়।
127.0.0.1যোগ করুন Source 12সোর্স 12। - আসল data-র পাশে training target চালানো। Juice Shop ইচ্ছা করে অনিরাপদ বানানো Source 14সোর্স 14। এটা ল্যাবেই রাখুন।
- Scanner-এর alert-কে প্রমাণিত দুর্বলতা হিসেবে রিপোর্ট করা। Scanner শুধু বলে যে দুর্বলতা থাকতে পারে। Penetration test আক্রমণ চালিয়ে সেটা প্রমাণ করে Source 8সোর্স 8।
- Vulnerability আর risk গুলিয়ে ফেলা। Vulnerability হলো দুর্বলতা Source 5সোর্স 5। Risk ক্ষতির মাত্রা আর সম্ভাবনাও হিসাব করে Source 6সোর্স 6।
- Kali image-এ সব tool আশা করা। Docker image-এ স্বাভাবিক tool-এর সেট থাকে না Source 10সোর্স 10।
What a tester can check
Tutorial advice
This list is the tutorial's own advice, not a fact from a source.
- The scope is written before the first command: the targets, the exclusions, the dates, and who to call if something breaks.
- The target listens on your machine only.
docker psshows127.0.0.1:3000->3000/tcp, not0.0.0.0:3000->3000/tcp. - Nobody else can reach it. From a second device on the same Wi-Fi,
http://<your-ip>:3000must not open. - Every action has a log line: the time, the tool, the target, and the result.
- The lab is cleaned up. After the session, stop the target with
docker stop juiceand remove the network withdocker network rm lab.
সহজ English
Tutorial advice
This list is the tutorial's own advice, not a fact from a source.
- Write the scope before the first command: the targets, what is off limits, the dates, and who to call if something breaks.
- The target listens on your machine only.
docker psshows127.0.0.1:3000->3000/tcp, not0.0.0.0:3000->3000/tcp. - Nobody else can reach it. From a second device on the same Wi-Fi,
http://<your-ip>:3000must not open. - Log every action: the time, the tool, the target, and the result.
- Clean up the lab. After the session, run
docker stop juiceanddocker network rm lab.
বাংলা ব্যাখ্যা
Tutorial advice
এই তালিকা টিউটোরিয়ালের নিজের পরামর্শ, কোনো source থেকে নেওয়া তথ্য নয়।
- প্রথম command-এর আগেই scope লেখা থাকবে: target, কোনগুলো বাদ, তারিখ, আর কিছু ভাঙলে কাকে জানাতে হবে।
- Target শুধু আপনার machine-এ শোনে।
docker ps-এ দেখাবে127.0.0.1:3000->3000/tcp,0.0.0.0:3000->3000/tcpনয়। - অন্য কেউ পৌঁছাতে পারে না। একই Wi-Fi-এর আরেকটা device থেকে
http://<your-ip>:3000খোলা চলবে না। - প্রতিটা কাজের log থাকবে: সময়, tool, target আর ফলাফল।
- ল্যাব পরিষ্কার করুন। Session শেষে
docker stop juiceআরdocker network rm labচালান।
Key words
| Term | Meaning |
|---|---|
| Confidentiality | Only the people who are allowed can access and disclose the information. |
| Integrity | Information is guarded against improper change or destruction. |
| Availability | People can reach and use the information on time and reliably. |
| CIA | Short for confidentiality, integrity, and availability. |
| Vulnerability | A weakness that a threat source could exploit or trigger. |
| Risk | How much a possible event threatens you, from its harm and its likelihood. |
| Penetration test | Testing that mimics real attacks to find ways around the security features. |
| Scope | The written list of what may be tested, and what may not. |
| ROE | Rules of engagement: written authorization for the attack activities of a test. |
| OWASP Juice Shop | An insecure web app for security training. |
| Kali Linux | A Debian-based Linux distribution with several hundred security tools. |