Shabakah

A network security lab you SSH into.

Shabakah runs on your own machine as one isolated Docker image. You start it, you SSH in, and a bilingual guide walks you through 17 hands on lessons against real services running inside it. Every challenge is checked live, so you learn by doing, not by reading.

Your computerssh -p 2222
Shabakah labwith the netsec guide

Cleartext web tcp 8080

An HTTP service with a telling banner, hidden paths, and a page it should never expose.

Lessons that use it

Flags hidden here

  • Recon rookie10 pt
  • Source reader10 pt
  • Left the door open20 pt

TLS web tcp 8443

The same service over TLS, with a self signed certificate to inspect and reason about.

Lessons that use it

Flags hidden here

  • Hidden in plain sight20 pt

Enumeration service tcp 9000

A raw TCP service with a chatty banner and an undocumented command to uncover.

Lessons that use it

Flags hidden here

  • Undocumented20 pt

Cleartext console tcp 2323

A forgotten admin console that reuses a password, the kind that turns one leak into three.

Lessons that use it

Flags hidden here

  • One leak, three doors30 pt

Lab DNS resolver udp 5353

An offline resolver for the shabakah.lab zone, with A, MX, and TXT records to query.

Lessons that use it

Flags hidden here

No flag here, but lessons depend on it

UDP banner service udp 9001

A UDP service that stays silent until you speak its protocol, which is the point.

Lessons that use it

Flags hidden here

No flag here, but lessons depend on it

Pick a port to see the service behind it, the lessons that use it, and the flag hidden there.
17hands on lessons
6practice services
6hidden flags
110points to win
2languages

Three commands and you are inside.

No lab to wire up, no cloud to pay for, nothing that reaches the outside world.

  1. Run the lab

    Pull the image or build it, then bring it up. It runs anywhere Docker runs.

    docker compose up -d --build
  2. SSH in

    Log in as the learner. The guide greets you and remembers where you left off.

    ssh -p 2222 learner@localhost
  3. Learn by doing

    Read a lesson, run the tools on the live services, then let the guide check your answer.

    netsec check 03 2323,8080,8443,9000

See the guide before you start.

Real screens from the guide, straight out of the terminal.

The Shabakah guide as seen after logging in

The guide greets you when you SSH in and remembers your progress.

17 lessons, each with a live challenge.

Every lesson ends with something to prove on the running services, checked by the guide. They run in order, from reading packets to hardening the door you came in through.

01The network stack and socketsSee how your host talks to the network and how to read what is listening.foundations
02Reading the wire with tcpdumpCapture live traffic, apply a filter, and read what a request and reply contain.capture
03Port scanning with nmapDiscover which ports are open on a host and reason about scan types.scanning
04Service enumeration and bannersTalk to a service by hand and pull useful detail out of its responses.enumeration
05HTTP recon and cleartext exposureInspect an HTTP service and see why cleartext protocols are dangerous.web
06DNS reconnaissanceQuery different record types and understand what DNS reveals.dns
07TLS and certificatesInspect a TLS service, read its certificate, and judge its trust.tls
08Host firewallingRead and reason about firewall rules and the default deny idea.firewall
09Traffic analysis and spotting attacksRecognise the shape of common activity, including a scan, in captured traffic.detection
10Detection and hardeningTie the lessons together into a defender mindset and a repeatable routine.defense
11UDP services and why they hideScan and talk to a UDP service, and understand why UDP is easy to miss.udp
12Chaining findings into accessFollow a trail from one small leak to real access, the way a real assessment runs.chaining
13Read a capture like an investigatorOpen a saved packet capture and reconstruct what happened from the packets alone.forensics
14Find the attack in the logsRead an authentication log and pick out a brute force attempt and its source.logs
15Harden the door you came in throughUnderstand the settings that make an SSH server hard to attack, and see them in place.hardening
16Reading security headersRead the HTTP response headers that tell a browser how to protect its users, and spot the ones that are missing.headers
17Scripted scanning with nmapUse the Nmap Scripting Engine to pull titles, certificates and banners in one pass, and know which scripts are safe to run.scripting

6 flags, 110 points.

Each flag sits where a careless operator would leave it, and each is reachable with a tool you already have. Find one, then run netsec submit flag{...}. Lesson 12 walks the whole chain.

FlagWhere to lookPoints
Recon rookieThe web service has a page it should not. A first curl finds it.808010
Source readerThe home page hides a note in its HTML source, not in the text you see.808010
Left the door openrobots.txt points at paths that were never meant to be public. One holds a config backup.808020
UndocumentedA service answers more commands than it admits to. Enumeration finds the one it hides.900020
One leak, three doorsA cleartext console reuses a password you already saw cross the wire.232330
Hidden in plain sightThe TLS certificate carries a field it never should. Read the whole subject.844320
Total, and the master badge with it110

More than a set of notes.

A guide, live services, and a game, in one image so nothing gets in your way.

A guide that checks your work
The netsec program is your instructor in the terminal. It shows the objective and the challenge, then verifies your answer against the running services in real time. Right answers stick between sessions.
Safe by design
Every practice service listens only inside the lab and runs without privileges. You practise the aggressive tools with no risk to anyone, which is the honest way to learn them.
Real tools
nmap, tcpdump, openssl, dig, netcat, hping3 and more are installed. The same tools you use on the job.
English and Arabic
Every lesson, prompt, and hint is written in both languages. Switch any time and your progress follows.
Badges and a certificate
Seven badges unlock as you clear lessons and capture flags, and a certificate prints once you finish everything.
The whole surface
Packet capture, port scanning, service enumeration, HTTP, TLS, DNS, UDP, log reading and SSH hardening. A full first pass over network security.

The tools are already installed.

Nothing to install mid lesson. The lab ships with a working network security kit and the guide to drive it.

Inside the lab

  • nmap
  • tcpdump
  • ngrep
  • openssl
  • dig
  • whois
  • netcat
  • socat
  • curl
  • wget
  • hping3
  • nftables
  • iptables
  • mtr
  • traceroute

Drive it with netsec

netsecopen the interactive guide
netsec nextjump to your next lesson
netsec lesson 05read one lesson
netsec check 05 <answer>check a challenge answer
netsec ctfshow the flag board
netsec submit flag{...}submit a flag you found
netsec targetssee which services are up
netsec certprint your certificate when you finish
netsec lang arswitch to Arabic

Up and running in a minute.

You need Docker. Everything else is in the image.

From source

git clone https://github.com/SiteQ8/Shabakah.git
cd Shabakah
docker compose up -d --build
ssh -p 2222 learner@localhost

Or with the prebuilt image

docker run -d --name shabakah --cap-add NET_ADMIN -p 2222:22 ghcr.io/siteq8/shabakah:latest
ssh -p 2222 learner@localhost

The password is set in docker-compose.yml. The default is shabakah.

Good to know.

Is any of this dangerous to run?

No. Every practice service listens only inside the lab and nothing reaches the outside world. You get to run nmap, tcpdump, and hping3 the aggressive way with no risk to anyone.

Do I need to know the command line already?

A little comfort with a terminal helps, but the guide shows the exact commands for each lesson and the cheat sheet is one keypress away.

Does it need an internet connection?

Only to pull or build the image the first time. After that everything runs offline, including the lab DNS resolver.

Can I use it to teach a class or run a workshop?

Yes. It is MIT licensed and bilingual, and each learner runs their own copy, so progress and flags stay per learner.

Where do I report a problem or suggest a lesson?

Open an issue on the GitHub repository. New lessons and services are welcome.

مختبر لأمن الشبكات في جهازك!

شبكة مختبرٌ متكامل لأمن الشبكات يعمل في بيئة Docker معزولة على جهازك وحده، تشغّله وتدخل إليه عبر SSH فيستقبلك مرشد بالعربية والإنجليزية ويسير بك في 17 درسا تطبيقيا على خدمات حقيقية تعمل داخله، ويصحّح لك كل تمرين لحظة تنفيذه فتتعلّم بيدك لا بعينك.

جهازكssh -p 2222
مختبر شبكةومعه المرشد netsec

ويب بنص صريح tcp 8080

خدمة HTTP بلافتة تفضح نفسها، ومسارات مخفية، وصفحة ما كان ينبغي أن تظهر أبدا.

الدروس التي تستخدمه

التحديات المخبأة فيه

  • مستكشف مبتدئ10 نقاط
  • قارئ المصدر10 نقاط
  • باب مفتوح20 نقطة

ويب عبر TLS tcp 8443

الخدمة نفسها لكن عبر TLS، بشهادة موقّعة ذاتيا تفحصها وتحلّل محتواها.

الدروس التي تستخدمه

التحديات المخبأة فيه

  • مخبأ على مرأى20 نقطة

خدمة تعداد tcp 9000

خدمة TCP بسيطة بلافتة ثرثارة، وفيها أمر غير موثّق عليك أن تكتشفه.

الدروس التي تستخدمه

التحديات المخبأة فيه

  • غير موثّق20 نقطة

وحدة تحكم بنص صريح tcp 2323

وحدة تحكّم إدارية منسيّة تُعيد استخدام كلمة مرور، من النوع الذي يحوّل تسريبا واحدا إلى ثلاثة أبواب مفتوحة.

الدروس التي تستخدمه

التحديات المخبأة فيه

  • تسريب واحد وثلاثة أبواب30 نقطة

خادم DNS للمختبر udp 5353

خادم أسماء محلّي لنطاق shabakah.lab، فيه سجلات A وMX وTXT تستعلم عنها.

الدروس التي تستخدمه

التحديات المخبأة فيه

لا تحدي هنا، لكن الدروس تعتمد عليه

خدمة لافتة UDP udp 9001

خدمة UDP تلزم الصمت حتى تخاطبها باللغة التي تفهمها، وذلك هو التحدي.

الدروس التي تستخدمه

التحديات المخبأة فيه

لا تحدي هنا، لكن الدروس تعتمد عليه

اختر منفذا لترى الخدمة التي تعمل خلفه، والدروس التي تستخدمه، والتحدي المخبأ فيه.
17درسا تطبيقيا
6خدمات للتدريب
6تحديات مخفية
110نقاط
2لغتان

ثلاثة أوامر وتدخل المختبر.

لا إعدادات معقّدة ولا خوادم سحابية بمقابل، فكل شيء يعمل داخل بيئة معزولة على جهازك وحده.

  1. شغّل المختبر

    نزّل الصورة الجاهزة أو ابنها بنفسك ثم شغّلها، فهي تعمل أينما توفّر Docker.

    docker compose up -d --build
  2. ادخل عبر SSH

    ادخل بحساب المتعلّم فيستقبلك المرشد من حيث توقّفت آخر مرة.

    ssh -p 2222 learner@localhost
  3. تعلّم بالتجربة

    اقرأ الدرس ثم جرّب الأدوات على خدمات التدريب، ودع المرشد يصحّح إجابتك.

    netsec check 03 2323,8080,8443,9000

شاهد المرشد قبل أن تبدأ.

لقطات حقيقية من المرشد كما ستظهر في طرفيتك تماما.

مرشد شبكة كما يظهر بعد تسجيل الدخول

يستقبلك المرشد فور دخولك ويتذكّر أين وصلت.

17 درسا، ولكل درس تمرين يُختبر مباشرة.

ينتهي كل درس بتطبيق عملي على خدمات التدريب يتحقق منه المرشد بنفسه، والدروس مرتّبة من التقاط الحزم إلى التحصين.

01طبقات الشبكة والمقابستعلّم كيف يتصل جهازك بالشبكة، وكيف تتعرّف على الخدمات التي تستمع على منافذه.الأساسيات
02التقاط الحزم وقراءتها باستخدام tcpdumpالتقط حركة الشبكة لحظة مرورها، وحدّد بمرشّح ما تريد الاحتفاظ به منها، ثم اقرأ ما يحمله الطلب والاستجابة.التقاط الحزم
03مسح المنافذ باستخدام nmapاكتشف المنافذ المفتوحة على الجهاز، وافهم الفرق بين أنواع المسح ومتى تستخدم كلا منها.مسح المنافذ
04تعداد الخدمات وقراءة لافتاتهاتواصل مع الخدمة يدويا، واستخلص من استجاباتها تفاصيل مفيدة.تعداد الخدمات
05استطلاع خدمات HTTP ومخاطر النص الصريحافحص خدمة HTTP، وتبيّن بنفسك خطورة البروتوكولات التي تنقل البيانات بنص صريح.الويب
06الاستطلاع عبر نظام أسماء النطاقاتاستعلم عن أنواع مختلفة من السجلات، وافهم ما يكشفه نظام أسماء النطاقات من معلومات.أسماء النطاقات
07بروتوكول TLS والشهادات الرقميةافحص خدمة تعمل ببروتوكول TLS واقرأ شهادتها، ثم احكم على مدى جدارتها بالثقة.الشهادات الرقمية
08الجدار الناري على مستوى المضيفاقرأ قواعد الجدار الناري وافهم منطقها، وتعرّف على فكرة المنع الافتراضي.الجدار الناري
09تحليل حركة الشبكة ورصد الهجماتميّز ملامح النشاط الشائع في حركة الشبكة الملتقطة، ومنها مسح المنافذ.الكشف
10الكشف والتحصيناربط الدروس السابقة بعضها ببعض لتكوّن طريقة تفكير المدافع وخطوات ثابتة تعيدها على أي مضيف.الدفاع
11خدمات UDP ولماذا تختبئافحص خدمة UDP وخاطبها وافهم لماذا يسهل تفويتها.بروتوكول UDP
12ربط النتائج للوصولاتبع أثرا من تسريب صغير إلى وصول حقيقي كما يجري التقييم الواقعي.ربط النتائج
13اقرأ الالتقاط كمحققافتح ملف التقاط محفوظا وأعد بناء ما جرى من الحزم وحدها.التحقيق الجنائي
14اعثر على الهجوم في السجلاتاقرأ سجل مصادقة والتقط محاولة تخمين شاملة ومصدرها.السجلات
15حصّن الباب الذي دخلت منهافهم الإعدادات التي تجعل خادم SSH صعب المهاجمة وشاهدها مطبقة.التحصين
16قراءة ترويسات الأماناقرأ ترويسات استجابة HTTP التي تخبر المتصفح كيف يحمي مستخدميه، واكتشف الغائب منها.ترويسات الأمان
17الفحص بالبرامج النصية في nmapاستخدم محرّك البرامج النصية في nmap لتستخرج عناوين الصفحات والشهادات ولافتات الخدمات في فحص واحد، واعرف البرامج النصية التي يمكن تشغيلها بأمان.برامج nmap النصية

ابحث عن 6 رموز سرية واجمع 110 نقاط.

التقاط الأعلام أسلوب تدريب معروف في الأمن السيبراني، خبّأنا فيه رموزا سرية داخل المختبر في أماكن يتركها فيها مشرف مهمل، فتكشف كل رمز بأدواتك ثم تسلّمه بالأمر netsec submit flag{...} لتكسب نقاطه، ويأخذك الدرس الثاني عشر في السلسلة كلها خطوة بخطوة.

التحديأين تبحثالنقاط
مستكشف مبتدئخدمة الويب تُخفي صفحة ما كان ينبغي أن تظهر، يكشفها أول طلب بـ curl.808010 نقاط
قارئ المصدرالصفحة الرئيسة تُخفي ملاحظة في مصدر HTML لا في النص الذي أمامك.808010 نقاط
باب مفتوحيدلّك ملف robots.txt على مسارات ما كان يُفترض أن تُنشر، وفي أحدها نسخة احتياطية من ملف الإعداد.808020 نقطة
غير موثّقإحدى الخدمات تنفّذ أوامر أكثر مما تُعلن عنه، والتعداد الجيّد يكشف الأمر الخفيّ.900020 نقطة
تسريب واحد وثلاثة أبوابوحدة تحكّم بنص صريح تستخدم كلمة مرور سبق أن رأيتها تمرّ على الشبكة.232330 نقطة
مخبأ على مرأىشهادة TLS تحمل حقلا زائدا ما كان ينبغي وجوده، فاقرأ حقل الموضوع كاملا.844320 نقطة
المجموع، ومعه شارة الأستاذ110 نقاط

أكثر من دروس تقرؤها.

مرشد يعلّمك، وخدمات حقيقية تتدرّب عليها، وتحديات تتنافس فيها، كلها في مكان واحد.

مرشد يصحّح إجابتك
برنامج netsec هو معلّمك داخل الطرفية، يعرض لك هدف كل درس وتمرينه ثم يتأكد من حلّك باختباره مباشرة على الخدمات العاملة، فيُحفظ تقدّمك مع كل إجابة صحيحة ويبقى معك بين الجلسات.
معزول وآمن
كل الخدمات محبوسة داخل البيئة المعزولة ولا تستقبل إلا اتصالات من داخلها، فتستخدم الأدوات الهجومية بحرّية دون أن تؤذي أحدا، وهذه هي الطريقة الصحيحة لإتقانها.
أدوات حقيقية
تجد nmap وtcpdump وopenssl وdig وnetcat وhping3 وغيرها جاهزة للعمل، وهي الأدوات ذاتها التي يعتمدها المحترفون في الميدان.
عربية وإنجليزية
كل درس وتمرين وتلميح متوفّر باللغتين، تنتقل بينهما وقتما تشاء دون أن تفقد تقدّمك.
شارات وشهادة
سبع شارات تكسبها تباعا مع كل درس تُنهيه وكل رمز تكشفه، ثم شهادة إتمام تطبعها حين تُنهي الدروس والتحديات كلها.
من الاستطلاع إلى التحصين
تمرّ على التقاط الحزم وفحص المنافذ وتعداد الخدمات، وHTTP وTLS وDNS وUDP، ثم قراءة السجلات وتحصين SSH، فتخرج بجولة أولى شاملة في أمن الشبكات.

الأدوات جاهزة من البداية.

لن تحتاج إلى تثبيت أي شيء أثناء الدرس، فالمختبر يأتي بعُدّة أمن شبكات كاملة ومعها المرشد الذي يوجّهك.

داخل المختبر

  • nmap
  • tcpdump
  • ngrep
  • openssl
  • dig
  • whois
  • netcat
  • socat
  • curl
  • wget
  • hping3
  • nftables
  • iptables
  • mtr
  • traceroute

تحكّم بها عبر netsec

netsecافتح المرشد التفاعلي
netsec nextانتقل إلى درسك التالي
netsec lesson 05اقرأ درسا محدّدا
netsec check 05 <answer>تحقّق من حلّ تمرين
netsec ctfاعرض لوحة التحديات
netsec submit flag{...}سلّم رمزا كشفته
netsec targetsاعرض حالة الخدمات
netsec certاطبع شهادتك حين تُنهي
netsec lang enبدّل إلى الإنجليزية

جاهز في دقيقة.

كل ما تحتاجه هو Docker، والباقي موجود داخل الصورة.

من المصدر

git clone https://github.com/SiteQ8/Shabakah.git
cd Shabakah
docker compose up -d --build
ssh -p 2222 learner@localhost

أو بالصورة الجاهزة من سجل GitHub

docker run -d --name shabakah --cap-add NET_ADMIN -p 2222:22 ghcr.io/siteq8/shabakah:latest
ssh -p 2222 learner@localhost

كلمة المرور محدّدة في docker-compose.yml، وقيمتها الافتراضية shabakah.

أسئلة شائعة.

هل تشغيله خطر على جهازي؟

لا، فكل شيء محبوس داخل البيئة المعزولة ولا شيء يخرج إلى شبكتك، فتشغّل nmap وtcpdump وhping3 بأقوى صورها دون أن تُلحق ضررا بأحد، ولهذا فالمختبر المعزول هو المكان الصحيح لتعلّم هذه الأدوات.

هل أحتاج إلى خبرة بسطر الأوامر مسبقا؟

تكفي معرفة بسيطة بالطرفية، فالمرشد يعرض لك الأوامر الدقيقة في كل درس، وورقة الأوامر السريعة على بُعد ضغطة، والتكرار كفيل بترسيخ المهارة.

هل يحتاج إلى اتصال بالإنترنت؟

يحتاجه مرة واحدة فقط لتنزيل الصورة أو بنائها، ثم يعمل كل شيء بعد ذلك دون إنترنت، حتى خادم الأسماء الخاص بالمختبر.

هل يصلح لتدريس صف أو تنظيم ورشة؟

نعم، فهو مفتوح المصدر برخصة MIT وبلغتين، ويكفي كل متعلّم أن يشغّل نسخته الخاصة، فتقدّم كل واحد ونقاطه مستقلّة عن غيره.

أين أُبلّغ عن مشكلة أو أقترح درسا جديدا؟

افتح مسألة (Issue) في مستودع المشروع على GitHub، ونرحّب بكل مساهمة بدروس أو خدمات جديدة.