Skip to contentমূল লেখায় যান

Topic 01 · Securityটপিক 01 · Security

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.

GoalWhat it meansA question a tester asks
ConfidentialityAuthorized limits on who can access and disclose information are kept Source 2সোর্স 2Can a user read data that is not theirs?
IntegrityInformation is guarded against improper change or destruction Source 3সোর্স 3Can a user change a price or delete a record that is not theirs?
AvailabilityInformation can be reached and used on time and reliably Source 4সোর্স 4Can 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-rolling is 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:

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-rolling Source 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-rolling
  • docker network create makes a user-defined bridge network Source 11সোর্স 11.
  • -d runs the container in the background, --name gives it a name, --network connects it to a network, -p publishes a port to the host, --rm removes the container when it exits, -i keeps STDIN open, and -t allocates a terminal Source 13সোর্স 13.
  • The Juice Shop image is bkimminich/juice-shop. Browse to http://localhost:3000 to 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-headless

From 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:

  1. docker network create lab makes a private Docker network Source 11সোর্স 11.
  2. The second command starts Juice Shop in the background, with the name juice, on the lab network, and on port 3000 of your own machine only. -d runs it in the background, --name names it, --network puts it on a network, and -p publishes a port Source 13সোর্স 13. Open http://localhost:3000 in your browser Source 15সোর্স 15.
  3. The third command starts Kali on the same network. --rm deletes the container when you exit, and -i and -t give 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 দিয়ে ল্যাব বানান:

  1. docker network create lab একটা আলাদা Docker network বানায় Source 11সোর্স 11।
  2. দ্বিতীয় command Juice Shop-কে background-এ চালু করে, juice নামে, lab network-এ, আর শুধু আপনার নিজের machine-এর port 3000-এ। -d background-এ চালায়, --name নাম দেয়, --network network-এ যুক্ত করে, আর -p port publish করে Source 13সোর্স 13। Browser-এ http://localhost:3000 খুলুন Source 15সোর্স 15।
  3. তৃতীয় command একই network-এ Kali চালু করে। আপনি বের হলে --rm container মুছে দেয়, আর -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

সহজ English

বাংলা ব্যাখ্যা

  • লিখিত অনুমতি ছাড়া, বা অনুমতির বাইরে টেস্ট করা। 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 ps shows 127.0.0.1:3000->3000/tcp, not 0.0.0.0:3000->3000/tcp.
  • Nobody else can reach it. From a second device on the same Wi-Fi, http://<your-ip>:3000 must 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 juice and remove the network with docker 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 ps shows 127.0.0.1:3000->3000/tcp, not 0.0.0.0:3000->3000/tcp.
  • Nobody else can reach it. From a second device on the same Wi-Fi, http://<your-ip>:3000 must not open.
  • Log every action: the time, the tool, the target, and the result.
  • Clean up the lab. After the session, run docker stop juice and docker 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

TermMeaning
ConfidentialityOnly the people who are allowed can access and disclose the information.
IntegrityInformation is guarded against improper change or destruction.
AvailabilityPeople can reach and use the information on time and reliably.
CIAShort for confidentiality, integrity, and availability.
VulnerabilityA weakness that a threat source could exploit or trigger.
RiskHow much a possible event threatens you, from its harm and its likelihood.
Penetration testTesting that mimics real attacks to find ways around the security features.
ScopeThe written list of what may be tested, and what may not.
ROERules of engagement: written authorization for the attack activities of a test.
OWASP Juice ShopAn insecure web app for security training.
Kali LinuxA Debian-based Linux distribution with several hundred security tools.
  1. [1]
    information security (Glossary)

    NIST Computer Security Resource Center · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  2. [2]
    confidentiality (Glossary)

    NIST Computer Security Resource Center · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  3. [3]
    integrity (Glossary)

    NIST Computer Security Resource Center · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  4. [4]
    availability (Glossary)

    NIST Computer Security Resource Center · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  5. [5]
    vulnerability (Glossary)

    NIST Computer Security Resource Center · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  6. [6]
    risk (Glossary)

    NIST Computer Security Resource Center · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  7. [7]
    penetration testing (Glossary)

    NIST Computer Security Resource Center · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  8. [8]
    SP 800-115, Technical Guide to Information Security Testing and Assessment

    NIST · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  9. [9]
    What is Kali Linux?

    Kali Linux documentation · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  10. [10]
    Official Kali Linux Docker Images

    Kali Linux documentation · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  11. [11]
    Bridge network driver

    Docker documentation · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  12. [12]
    Port publishing and mapping

    Docker documentation · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  13. [13]
    docker container run

    Docker documentation · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  14. [14]
    OWASP Juice Shop

    OWASP Foundation · accessed 2026-11-15দেখা হয়েছে: 2026-11-15

  15. [15]
    juice-shop (README)

    OWASP Juice Shop on GitHub · accessed 2026-11-15দেখা হয়েছে: 2026-11-15