The Kashif passive web scanner
If your server logs show a visitor identifying itself as below, someone ran Kashif, a free, open-source security scanner, against your site. This page explains what it checks, every request it can send, and who is allowed to run it.
User-Agent: Kashif/1.x.y (+https://abdulrahmanahmedelabed-prog.github.io/vulnscan/scanner.html)Who runs it
Kashif is a program that people run on their own computers. The Kashif project operates no scanning service, does
not choose targets and never receives scan results: the program has no telemetry, and the report stays with the person
who ran it. Kashif refuses to scan a website unless that person confirms they own it or are authorized to test it
(--authorized on the command line, or the confirmation box in its interface). Scanning a site without
permission may be illegal where you or the operator live.
What it checks
It is a passive scanner: it reads what any browser would receive and reports configuration weaknesses, for example missing or invalid security headers (HSTS, Content-Security-Policy, X-Frame-Options), cookie attributes, CORS answers, mixed content, outdated JavaScript libraries, information disclosed in headers or error pages, and the TLS protocol and certificate configuration. The owner gets copy-paste fixes for their server. Every check is listed, with its severity and its fix, on the web checks page; the web scanning guide explains the options, the reports and what a passive scan cannot find.
Every request it can send
Only GET requests, plus TLS handshakes. The budget is per scan: minimal profile at most
10 requests (the page and its redirects), standard (the default) at most 45 (typically 15–20),
deep at most 150. Redirect hops count.
| Request | When | Limit |
|---|---|---|
| The address the operator entered, following redirects like a browser | always | ≤ 10 hops |
The same address over the other scheme (http:// ↔ https://), to check the HTTPS redirect | standard and deep | 1 chain, ≤ 10 hops |
The same page once more, without cookies, with the header Origin: https://kashif-cors-check.invalid (CORS check) | standard and deep | 1 |
Well-known public files: /robots.txt, /.well-known/security.txt (/security.txt only if that is missing), the icon the page declares or /favicon.ico, /sitemap.xml (only when crawling) | standard and deep | ≤ 5 |
| Scripts and stylesheets the page itself loads (as a browser does) | standard: same site; deep: also third-party | ≤ 15 same-site, ≤ 10 third-party |
| Source maps a fetched script or stylesheet names; same-site JPEG images (first 128 KB, to check for GPS metadata) | deep (images also when crawling) | ≤ 5 maps, ≤ 10 images |
Links of the same origin (same scheme, host and port: <a href>), breadth-first | only when the operator enables crawling (standard and deep) | 20 pages by default, depth 2; never more than 500 |
A fixed list of files that are often exposed by accident (for example /.git/HEAD, /.env, backups), the login and administration pages of a platform Kashif recognised (for example /wp-login.php; fetched once, nothing is submitted), and random paths named /kashif-404-<16 hex digits> to learn what your “not found” page looks like | deep only (opt-in) | ≤ 70 paths; ≤ 5 random paths per host, ≤ 10 in total |
| TLS handshakes to the site's HTTPS port: one verified, one unverified and short version/cipher probes that read the server's reply and close | HTTPS sites | ≈ 14 per address (deep ≈ 60), ≤ 5 per second |
| Normal DNS lookups of the site and of the hosts its scripts, styles, frames and forms reference | always (referenced hosts: standard and deep) | none sent to your web servers (your DNS servers see ordinary lookups) |
How it behaves
- One request at a time per host, with a pause of at least 0.5 s by default (never below 0.2 s). A
Crawl-delayin robots.txt raises the pause (up to 10 s). - Backs off: after a
429or503it waits forRetry-After(at most 60 s) once; a second one stops the scan of that host. Repeated connection errors also stop it. - robots.txt: crawling obeys
DisallowforKashifor*by default. The well-known files and the deep list above are fetched regardless, because they are the owner's own security check, not a crawl; the operator can also choose to ignore robots.txt for their own site. - Honest identification: it always sends the User-Agent above and only these request headers:
User-Agent,Accept,Accept-Encoding: gzip, deflate,Accept-Language: en, andOriginon the single CORS request. Cookies your site sets are kept in memory for that scan only, never written to disk and never sent to another host. - Limits: per-response size and time caps, and at most 50 MB received and 10 minutes per scan.
What it never does
- No attack payloads, parameter fuzzing, path guessing beyond the fixed deep list, password guessing or form submission.
- No methods other than
GET(noPOST,OPTIONS,TRACE,PUT), and no craftedOriginvalues. - No WAF evasion, User-Agent rotation or spoofed headers such as
X-Forwarded-For. - No malformed TLS records (Heartbleed, ROBOT, padding oracles), no renegotiation tests, no port scanning.
- No requests that make a server do expensive or state-changing work (heap or thread dumps, profilers, cache purges, installers).
- No JavaScript execution, and no lookups of your site at third-party services unless the operator explicitly opts in.
If you did not authorize this scan
The person who ran it is responsible for it, and the Kashif project cannot see or stop scans run by others. You can block the scanner by its User-Agent, which it never disguises, for example:
# nginx (server block)
if ($http_user_agent ~ "^Kashif/") { return 403; }
# Apache httpd 2.4
<If "%{HTTP_USER_AGENT} =~ m#^Kashif/#">
Require all denied
</If>
To report misuse, contact the network that owns the source IP address in your logs (its abuse contact).
Contact the project
For questions about the scanner, or to report a problem with how it behaves, use the private reporting channel on the project's security page. Read more about Kashif on the home page.
الفحص السلبي للمواقع في كاشِف
إذا ظهر في سجلات خادمك زائر يعرّف نفسه كما يلي، فهذا يعني أن شخصًا ما شغّل كاشِف، وهو أداة فحص أمني مجانية مفتوحة المصدر، على موقعك. تشرح هذه الصفحة ما يفحصه، وكل طلب يمكن أن يرسله، ومن يحق له تشغيله.
User-Agent: Kashif/1.x.y (+https://abdulrahmanahmedelabed-prog.github.io/vulnscan/scanner.html)من يشغّله
كاشِف برنامج يشغّله الناس على أجهزتهم. لا يدير مشروع كاشِف أي خدمة فحص، ولا يختار المواقع المفحوصة، ولا تصله نتائج أي
فحص: فالبرنامج لا يرسل أي بيانات استخدام، ويبقى التقرير عند من شغّله. ويرفض كاشِف فحص أي موقع ما لم يؤكد المستخدم أنه
مالكه أو أنه مخوَّل باختباره (الخيار --authorized في سطر الأوامر، أو مربع التأكيد في الواجهة). وقد يكون فحص
موقع دون إذن مخالفًا للقانون في بلدك أو بلد من شغّل الفحص.
ما الذي يفحصه
هو فاحص سلبي: يقرأ ما يستقبله أي متصفح، ويبلّغ عن نقاط الضعف في الإعدادات، مثل ترويسات الأمان المفقودة أو غير الصالحة (HSTS وContent-Security-Policy وX-Frame-Options)، وسمات الكوكيز، وردود CORS، والمحتوى المختلط، ومكتبات JavaScript القديمة، والمعلومات المكشوفة في الترويسات أو صفحات الأخطاء، وإعدادات بروتوكول TLS والشهادة. ويحصل مالك الموقع على مقتطفات إصلاح جاهزة للنسخ لخادمه. وكل الفحوص مذكورة بخطورتها وإصلاحها في صفحة فحوص الويب، ويشرح دليل فحص المواقع الخيارات والتقارير وما لا يكشفه الفحص السلبي.
كل الطلبات التي يمكن أن يرسلها
طلبات GET فقط، إضافةً إلى مصافحات TLS. والحد الأقصى لكل فحص: في نمط minimal عشرة طلبات
على الأكثر (الصفحة وتوجيهاتها)، وفي نمط standard (الافتراضي) 45 طلبًا على الأكثر (والمعتاد من 15 إلى 20
طلبًا)، وفي نمط deep 150 طلبًا على الأكثر. وتُحسب قفزات التوجيه ضمن هذا العدد.
| الطلب | متى | الحد |
|---|---|---|
| العنوان الذي أدخله المشغّل، مع اتباع التوجيهات كما يفعل المتصفح | دائمًا | 10 قفزات على الأكثر |
العنوان نفسه بالبروتوكول الآخر (http:// وhttps://) للتحقق من التوجيه إلى HTTPS | نمطا standard وdeep | سلسلة واحدة، 10 قفزات على الأكثر |
الصفحة نفسها مرة أخرى، بلا كوكيز، مع الترويسة Origin: https://kashif-cors-check.invalid (فحص CORS) | نمطا standard وdeep | طلب واحد |
الملفات العامة المعروفة: /robots.txt و/.well-known/security.txt (و/security.txt فقط إن لم يوجد الأول)، والأيقونة التي تعلنها الصفحة أو /favicon.ico، و/sitemap.xml (عند الزحف فقط) | نمطا standard وdeep | 5 طلبات على الأكثر |
| السكربتات وملفات الأنماط التي تحمّلها الصفحة نفسها (كما يفعل المتصفح) | standard: من الموقع نفسه؛ deep: ومن مواقع خارجية أيضًا | 15 من الموقع نفسه و10 خارجية على الأكثر |
| خرائط المصدر التي يذكرها سكربت أو ملف أنماط، وصور JPEG من الموقع نفسه (أول 128 كيلوبايت فقط، للتحقق من بيانات الموقع الجغرافي) | نمط deep (والصور عند الزحف أيضًا) | 5 خرائط و10 صور على الأكثر |
روابط الأصل نفسه (المخطط والمضيف والمنفذ أنفسها: <a href>) بالعرض أولًا | فقط إذا فعّل المشغّل الزحف (نمطا standard وdeep) | 20 صفحةً افتراضيًا، بعمق 2؛ ولا تتجاوز 500 صفحة أبدًا |
قائمة ثابتة من الملفات التي تُكشف كثيرًا بالخطأ (مثل /.git/HEAD و/.env والنسخ الاحتياطية)، وصفحات الدخول والإدارة لمنصّة تعرّف عليها كاشِف (مثل /wp-login.php؛ تُطلب مرة واحدة ولا يُرسل إليها شيء)، ومسارات عشوائية باسم /kashif-404-<16 hex> (16 رقمًا ست عشريًا) لمعرفة شكل صفحة «غير موجود» لديك | نمط deep فقط (باختيار المشغّل) | 70 مسارًا على الأكثر؛ و5 مسارات عشوائية لكل مضيف و10 في المجموع على الأكثر |
| مصافحات TLS مع منفذ HTTPS للموقع: واحدة مع التحقق من الشهادة، وواحدة دونه، وفحوص قصيرة للإصدارات ومجموعات التشفير تقرأ رد الخادم ثم تغلق الاتصال | مواقع HTTPS | نحو 14 لكل عنوان (ونحو 60 في deep)، و5 في الثانية على الأكثر |
| استعلامات DNS عادية عن الموقع وعن المضيفين الذين تشير إليهم سكربتاته وأنماطه وإطاراته ونماذجه | دائمًا (المضيفون المشار إليهم: standard وdeep) | لا يُرسل أي طلب إلى خوادم الويب لديك (وترى خوادم DNS استعلامات عادية فقط) |
كيف يتصرف
- طلب واحد في كل مرة لكل مضيف، مع فاصل نصف ثانية على الأقل افتراضيًا (ولا يقل أبدًا عن 0.2 ثانية).
وتزيد قيمة
Crawl-delayفي robots.txt هذا الفاصل (حتى 10 ثوانٍ). - يتراجع عند الضغط: بعد رد
429أو503ينتظر المدة المذكورة فيRetry-After(دقيقة واحدة على الأكثر) مرة واحدة، فإن تكرر الرد أوقف فحص ذلك المضيف. وتوقفه كذلك أخطاء الاتصال المتكررة. - ملف robots.txt: يلتزم الزحف افتراضيًا بقواعد
Disallowالموجهة إلىKashifأو إلى*. أما الملفات المعروفة والقائمة العميقة أعلاه فتُطلب في كل الأحوال، لأنها فحص أمني يجريه المالك على موقعه وليست زحفًا؛ ويمكن للمشغّل أيضًا تجاهل robots.txt عند فحص موقعه هو. - تعريف صادق بنفسه: يرسل دائمًا معرّف User-Agent المذكور أعلاه، ولا يرسل من ترويسات الطلب إلا:
User-AgentوAcceptوAccept-Encoding: gzip, deflateوAccept-Language: en، وOriginفي طلب CORS الوحيد. والكوكيز التي يضبطها موقعك تُحفظ في الذاكرة طوال ذلك الفحص فقط، ولا تُكتب على القرص، ولا تُرسل إلى مضيف آخر أبدًا. - حدود: حد لحجم كل استجابة ومدتها، و50 ميغابايت مستقبَلة و10 دقائق لكل فحص على الأكثر.
ما لا يفعله أبدًا
- لا حمولات هجوم، ولا عبث بالمعاملات، ولا تخمين للمسارات خارج القائمة العميقة الثابتة، ولا تخمين لكلمات المرور، ولا إرسال للنماذج.
- لا طرق غير
GET(فلاPOSTولاOPTIONSولاTRACEولاPUT)، ولا قيمOriginمصطنعة. - لا تحايل على جدران الحماية، ولا تبديل لمعرّف User-Agent، ولا ترويسات مزيفة مثل
X-Forwarded-For. - لا سجلات TLS مشوهة (مثل Heartbleed وROBOT وهجمات padding oracle)، ولا اختبارات لإعادة التفاوض، ولا مسح للمنافذ.
- لا طلبات تجعل الخادم يؤدي عملًا مكلفًا أو يغيّر حالته (تفريغ الذاكرة أو الخيوط، وأدوات قياس الأداء، ومسح الذاكرة المؤقتة، وخطوات التثبيت).
- لا تشغيل لكود JavaScript، ولا استعلام عن موقعك لدى خدمات خارجية إلا إذا اختار المشغّل ذلك صراحةً.
إذا لم تأذن بهذا الفحص
المسؤول عن الفحص هو من شغّله، ولا يستطيع مشروع كاشِف رؤية الفحوص التي يجريها الآخرون أو إيقافها. ويمكنك حظر الفاحص بمعرّف User-Agent الخاص به، فهو لا يخفيه أبدًا، مثلًا:
# nginx (server block)
if ($http_user_agent ~ "^Kashif/") { return 403; }
# Apache httpd 2.4
<If "%{HTTP_USER_AGENT} =~ m#^Kashif/#">
Require all denied
</If>
وللإبلاغ عن إساءة الاستخدام تواصل مع الشبكة المالكة لعنوان IP المصدر الظاهر في سجلاتك (جهة الاتصال الخاصة بالإساءة لديها).
التواصل مع المشروع
للأسئلة عن الفاحص أو للإبلاغ عن مشكلة في سلوكه، استخدم قناة الإبلاغ الخاصة الموضحة في صفحة الأمان للمشروع. ولمعرفة المزيد عن كاشِف زر الصفحة الرئيسية.