> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/ar/privesc/user-groups/docker-group-linux-privilege-escalation.md).

# إساءة استخدام مجموعة docker - تصعيد امتيازات لينكس

## ما هو

يمكن أن تكشف عضويات المجموعات المحلية الخطرة عن الموارد المميّزة دون الحاجة إلى استغلال نواة النظام. قد تمنح مجموعات مثل docker وlxd وadm أو proxy التحكم بالمضيف، أو الوصول إلى السجلات الحساسة، أو مسارات التهيئة المفيدة للحركة الجانبية والتصعيد إلى root. تركز هذه الصفحة تحديدًا على **مجموعة المستخدم (Docker)** وتحافظ على سير الاستغلال بشكل عملي: حدّد الحالة، تحقّق منها بأمان، ثم شغّل أصغر حمولة لازمة لإثبات الأثر.

## الاستكشاف

ابدأ بتأكيد السياق المحلي والتهيئة الخاطئة الدقيقة قبل تشغيل مسار الاستغلال.

```bash
المعرّف
groups
```

## أمثلة

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

باستخدام المستخدم منخفض الصلاحيات **jordan**، يمكننا **تشغيل أوامر Docker**:

<figure><img src="/files/277d60dce79082681baca8e1e0146ebee4f55b0a" alt=""><figcaption></figcaption></figure>

باستخدام الأمر التالي، نشغّل Docker الذي \*\* يخزّن root\*\* المستخدم root:

```bash
docker run --rm -dit -v /:/mnt/root --name privesc ubuntu
```

يمكننا أيضًا منح **أذونات SUID** لـ Bash:

<figure><img src="/files/991f1481ea090bcd1a66e70fa215e28778aba5c5" alt=""><figcaption></figcaption></figure>

عندما نذهب إلى **/mnt/etc/shadow** الملف، نجد كلمات المرور المُجزأة:

<figure><img src="/files/a8763d886e6e244c1a240602e8c3d49efad67721" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/ar/privesc/user-groups/docker-group-linux-privilege-escalation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
