Kashif · كاشِف

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.

RequestWhenLimit
The address the operator entered, following redirects like a browseralways≤ 10 hops
The same address over the other scheme (http:// ↔ https://), to check the HTTPS redirectstandard and deep1 chain, ≤ 10 hops
The same page once more, without cookies, with the header Origin: https://kashif-cors-check.invalid (CORS check)standard and deep1
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-firstonly 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 likedeep 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 closeHTTPS 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 referencealways (referenced hosts: standard and deep)none sent to your web servers (your DNS servers see ordinary lookups)

How it behaves

What it never does

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 وdeep5 طلبات على الأكثر
السكربتات وملفات الأنماط التي تحمّلها الصفحة نفسها (كما يفعل المتصفح)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 استعلامات عادية فقط)

كيف يتصرف

ما لا يفعله أبدًا

إذا لم تأذن بهذا الفحص

المسؤول عن الفحص هو من شغّله، ولا يستطيع مشروع كاشِف رؤية الفحوص التي يجريها الآخرون أو إيقافها. ويمكنك حظر الفاحص بمعرّف 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 المصدر الظاهر في سجلاتك (جهة الاتصال الخاصة بالإساءة لديها).

التواصل مع المشروع

للأسئلة عن الفاحص أو للإبلاغ عن مشكلة في سلوكه، استخدم قناة الإبلاغ الخاصة الموضحة في صفحة الأمان للمشروع. ولمعرفة المزيد عن كاشِف زر الصفحة الرئيسية.