Denial of Service (DoS) Attacks: Resource Starvation Notes in Hindi & English : डिनायल ऑफ सर्विस (DoS) अटैक: रिसोर्स ब्लॉकेज और ओवरलोड और 20 महत्वपूर्ण MCQ प्रश्न (Rajasthan IT Exam)

Post a Comment

PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Denial of Service (DoS) Attacks: Resource Starvation (डिनायल ऑफ सर्विस (DoS) अटैक: रिसोर्स ब्लॉकेज और ओवरलोड) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।

Overview: Denial of Service (DoS) attacks disrupt system availability from a single attacking source by exhausting finite compute, memory, socket, or bandwidth resources through asymmetric or malformed requests.

अध्याय सार: डिनायल ऑफ सर्विस (DoS) हमले किसी एक स्रोत से सिस्टम के सीमित CPU, मेमोरी, नेटवर्क बैंडविड्थ या कनेक्शन टेबल को ओवरलोड करके वैध उपयोगकर्ताओं के लिए सेवा को अनुपलब्ध (Unavailable) बना देते हैं।

Denial of Service (DoS) Attacks: Resource Starvation: Detailed Notes & Architecture (डिनायल ऑफ सर्विस (DoS) अटैक: रिसोर्स ब्लॉकेज और ओवरलोड)

1. CIA Triad Availability & Asymmetric Resource Exhaustion (CIA ट्रायड उपलब्धता और विषम संसाधन खपत)

[EN] Within the CIA Triad (Confidentiality, Integrity, Availability), DoS attacks specifically target Availability rather than stealing or altering data. Effective single-source DoS attacks rely on asymmetric resource consumption, where a tiny client request forces the server to allocate disproportionate RAM, CPU cycles, regex backtracking steps, or long-lived TCP socket descriptors.

[HI] CIA ट्रायड (गोपनीयता, अखंडता, उपलब्धता) में DoS हमले सीधे सिस्टम की 'उपलब्धता (Availability)' को निशाना बनाते हैं। एकल-स्रोत DoS अक्सर विषम खपत पर आधारित होते हैं, जहाँ हमलावर का छोटा-सा अनुरोध सर्वर की भारी मेमोरी, CPU या लंबे समय तक चलने वाले सॉकेट ब्लॉक कर देता है।

2. Classic Protocol & OS Resource Starvation Attacks (क्लासिक प्रोटोकॉल और OS संसाधन अवरोध हमले)

[EN] Early single-host DoS exploits targeted OS network stack flaws: Ping of Death sent oversized fragmented ICMP packets exceeding the 65,535-byte IPv4 limit (RFC 791), crashing reassembly buffers; Teardrop sent overlapping IP fragment offsets causing kernel panics; and the Land Attack sent TCP SYN packets with identical source and destination IP/port, forcing the target into an infinite self-reply loop. Locally, a Fork Bomb such as ':(){ :|:& };:' recursively spawns child processes until the OS PID table is exhausted.

[HI] पारंपरिक DoS हमलों में ऑपरेटिंग सिस्टम की नेटवर्क कमजोरियों का उपयोग होता था: Ping of Death में 65,535 बाइट सीमा से बड़ा पैकेट भेजा जाता था, Teardrop में ओवरलैपिंग IP फ्रैगमेंट भेजे जाते थे और Land Attack में स्रोत व गंतव्य IP/पोर्ट एक जैसे रखकर अनंत लूप बनाया जाता था। लोकल सिस्टम पर Fork Bomb प्रोसेस टेबल भरकर सिस्टम फ्रीज कर देता है।

3. Application-Layer DoS: Slowloris & ReDoS (एप्लिकेशन-लेयर DoS: Slowloris व ReDoS)

[EN] Unlike high-bandwidth floods, Slowloris is a low-bandwidth Layer 7 attack that opens hundreds of HTTP connections and sends partial headers (such as 'X-a: b\r\n') every few seconds without sending the terminating '\r\n\r\n', starving thread-based servers like classic Apache HTTPD. Similarly, Regular Expression Denial of Service (ReDoS) submits crafted strings to poorly written regexes (like '(a+)+$'), triggering exponential O(2^n) catastrophic backtracking that pegs server CPUs at 100%.

[HI] Slowloris कम बैंडविड्थ वाला लेयर-7 हमला है जो सैकड़ों HTTP कनेक्शन खोलकर अधूरे हेडर भेजता रहता है और अंतिम '\r\n\r\n' नहीं भेजता, जिससे वेब सर्वर के वर्कर थ्रेड खत्म हो जाते हैं। वहीं ReDoS में जटिल रेगुलर एक्सप्रेशन पर विशेष इनपुट देकर O(2^n) बैकट्रैकिंग द्वारा CPU को 100% व्यस्त कर दिया जाता है।

4. Defense Controls: Timeouts, Rate Limiting & SYN Cookies (बचाव उपाय: टाइमआउट, रेट लिमिटिंग और SYN कुकीज़)

[EN] Mitigating single-source DoS requires strict connection timeouts (such as Nginx 'client_header_timeout' and 'client_body_timeout'), per-IP concurrency/rate limits, and event-driven asynchronous server architectures (Nginx/Node/epoll) that avoid allocating one OS thread per connection. At the OS kernel level, enabling SYN cookies encodes connection state cryptographically inside the Initial Sequence Number (ISN) instead of exhausting the half-open backlog queue.

[HI] DoS से बचाव के लिए सख्त कनेक्शन टाइमआउट, प्रति-IP रेट लिमिटिंग और इवेंट-आधारित असिंक्रोनस सर्वर (जैसे Nginx) अपनाए जाते हैं ताकि अधूरे कनेक्शन थ्रेड ब्लॉक न करें। कर्नेल स्तर पर SYN Cookies हाफ-ओपन क्यू में मेमोरी आरक्षित किए बिना ISN में ही कनेक्शन स्थिति सुरक्षित रखती हैं।

Syntax, Formula & Technical Example (Denial of Service (DoS) Attacks: Resource Starvation)

# 1. Slowloris Partial HTTP Request (missing final \r\n terminator keeps socket open)
GET /index.html HTTP/1.1\r\n
Host: target.example.com\r\n
X-Keep-Alive: a\r\n      # Sent every 10s; server waits indefinitely for final \r\n

# 2. Bash Fork Bomb (exhausts OS process table / PID limit)
:(){ :|:& };:

# 3. Nginx Mitigation Configuration (timeouts + per-IP request rate limiting)
limit_req_zone $binary_remote_addr zone=req_limit:10m rate=10r/s;
client_header_timeout 5s;
client_body_timeout 5s;

Denial of Service (DoS) Attacks: Resource Starvation Quick Reference & Comparison Table

DoS Attack TypeTargeted System ResourceCore Defense / Mitigation
Slowloris (Low & Slow)Web Server Worker Threads & ConnectionsStrict client_header_timeout & event-driven reverse proxy
Ping of DeathIPv4 Packet Reassembly Buffer (>65,535 B)OS kernel IP stack validation & firewall fragment drop
ReDoS (Catastrophic Regex)Application CPU Cycles (O(2^n) backtracking)Linear-time regex engines (RE2) & input length caps
Fork Bomb (:(){ :|:& };:)OS Process Table (PID) & Kernel Memoryulimit -u max user processes / systemd TasksMax

Denial of Service (DoS) Attacks: Resource Starvation Top 20 Bilingual MCQs with Answers

Q1. Which pillar of the CIA Triad is primarily compromised by a Denial of Service (DoS) attack?

(Denial of Service (DoS) हमला मुख्य रूप से CIA ट्रायड के किस स्तंभ को प्रभावित करता है?)

(A) Non-repudiation

(B) Integrity

(C) Confidentiality

(D) Availability

Correct Answer: (D)

[EN] DoS attacks make authorized services, networks, or data unreachable to legitimate users, directly violating Availability.

[HI] DoS हमले वैध उपयोगकर्ताओं के लिए सिस्टम या सेवा को अनुपलब्ध कर देते हैं, जो 'Availability' (उपलब्धता) का उल्लंघन है।

Q2. What distinguishes a traditional DoS attack from a DDoS attack?

(एक सामान्य DoS हमले और DDoS हमले के बीच मुख्य अंतर क्या है?)

(A) DoS uses UDP exclusively while DDoS uses ICMP

(B) DoS only attacks hardware while DDoS only attacks databases

(C) DoS originates from a single host/IP source, whereas DDoS uses multiple distributed systems (botnet)

(D) DoS requires physical access to the server room

Correct Answer: (C)

[EN] A standard DoS uses one machine or connection, making it easier to block by source IP compared to multi-source DDoS.

[HI] सामान्य DoS केवल एक सिस्टम/IP से किया जाता है, जबकि DDoS में हजारों संक्रमित मशीनों (बॉटनेट) का उपयोग होता है।

Q3. How does a 'Slowloris' HTTP DoS attack exhaust a web server while using minimal network bandwidth?

('Slowloris' HTTP DoS हमला बहुत कम नेटवर्क बैंडविड्थ का उपयोग करके भी वेब सर्वर को कैसे ठप कर देता है?)

(A) It injects SQL DROP TABLE commands inside User-Agent headers

(B) It downloads 4K video files from the server repeatedly

(C) It opens maximum concurrent connections and sends partial HTTP headers slowly without sending the final blank CRLF line

(D) It floods the server with 100 Gbps of malformed UDP packets

Correct Answer: (C)

[EN] By never finishing the HTTP request headers (omitting the terminating \r\n\r\n), Slowloris holds server worker sockets open until no slots remain.

[HI] Slowloris अधूरे HTTP हेडर भेजकर कनेक्शन को खुला रखता है (अंतिम खाली लाइन नहीं भेजता), जिससे सर्वर के सभी कनेक्शन स्लॉट भर जाते हैं।

Q4. In the classic 'Ping of Death' attack, what maximum IPv4 packet size limit defined by RFC 791 was exceeded?

(क्लासिक 'Ping of Death' हमले में RFC 791 द्वारा निर्धारित किस अधिकतम IPv4 पैकेट आकार की सीमा को पार किया जाता था?)

(A) 4,096 bytes

(B) 65,535 bytes

(C) 32,768 bytes

(D) 1,500 bytes

Correct Answer: (B)

[EN] An IPv4 header has a 16-bit Total Length field (max 65,535 bytes); malformed IP fragments reassembled beyond 65,535 bytes crashed unpatched OS kernels.

[HI] IPv4 पैकेट का अधिकतम आकार 65,535 बाइट्स होता है; इससे बड़ा फ्रैगमेंटेड पैकेट जोड़ने पर पुराने ऑपरेटिंग सिस्टम क्रैश हो जाते थे।

Q5. What does a 'Land Attack' put inside the IP and TCP headers of crafted SYN packets?

('Land Attack' में बनाए गए SYN पैकेट के IP और TCP हेडर में क्या असामान्य बदलाव किया जाता है?)

(A) Both the Source IP/Port and Destination IP/Port are set identically to the victim's own IP and open port

(B) The Time-To-Live (TTL) field is set to 255

(C) The TCP Checksum is set to 0xFFFF

(D) The Destination IP is set to 255.255.255.255

Correct Answer: (A)

[EN] Older TCP/IP stacks locked up or looped endlessly replying to themselves when receiving a SYN whose source equaled destination.

[HI] Land Attack में स्रोत और गंतव्य दोनों में पीड़ित का ही IP व पोर्ट डाल दिया जाता था, जिससे सिस्टम खुद को ही जवाब भेजते हुए हैंग हो जाता था।

Q6. How did the 'Teardrop' DoS attack crash vulnerable operating systems?

('Teardrop' DoS हमले ने कमजोर ऑपरेटिंग सिस्टम को कैसे क्रैश किया था?)

(A) By sending IP fragments with overlapping or negative offset lengths during packet reassembly

(B) By sending SSLv2 ClientHello downgrade handshakes

(C) By exhausting DNS cache entries with random domains

(D) By overflowing the switch CAM MAC table

Correct Answer: (A)

[EN] Teardrop exploited bugs in IP fragment offset math where overlapping fragments produced a negative buffer copy length.

[HI] Teardrop में IP फ्रैगमेंट्स के ऑफ़सेट ओवरलैप कर दिए जाते थे, जिससे पैकेट रीअसेंबली के समय कर्नेल में मेमोरी बग के कारण सिस्टम क्रैश होता था।

Q7. What does the Unix/Linux Fork Bomb command ':(){ :|:& };:' cause on an unconfigured host?

(असुरक्षित Linux/Unix सिस्टम पर Fork Bomb कमांड ':(){ :|:& };:' चलाने से क्या होता है?)

(A) Permanent erasure of BIOS CMOS settings

(B) Immediate formatting of the /boot partition

(C) Disabling of iptables firewall rules

(D) Exponential recursive process creation that exhausts the OS process table (PIDs) and freezes the system

Correct Answer: (D)

[EN] The function ':' calls two copies of itself in the background recursively, rapidly saturating CPU and process limits unless restricted by ulimit.

[HI] यह कमांड बार-बार अपनी दो बैकग्राउंड कॉपी बनाता है जिससे कुछ ही सेकंड में सिस्टम की प्रोसेस टेबल (PIDs) भर जाती है।

Q8. What algorithmic flaw allows a 'ReDoS' (Regular Expression Denial of Service) attack to freeze a server with a tiny string?

('ReDoS' हमला किसी छोटे से टेक्स्ट इनपुट द्वारा सर्वर CPU को 100% पर क्यों अटका सकता है?)

(A) Integer division by zero inside TCP congestion control

(B) Catastrophic exponential backtracking O(2^n) inside NFA-based regular expression engines

(C) SHA-256 hash collision in TLS certificates

(D) Buffer overflow in C strcpy() functions

Correct Answer: (B)

[EN] Evil regexes with nested quantifiers like '(a+)+$' evaluate exponentially many paths on non-matching trailing strings.

[HI] नेस्टेड क्वांटिफायर वाले रेगुलर एक्सप्रेशन (जैसे '(a+)+$') पर खास इनपुट देने से NFA इंजन O(2^n) बैकट्रैकिंग में फंस जाता है।

Q9. Why is Nginx naturally far more resilient to Slowloris attacks than older prefork Apache HTTP Server setups?

(पुराने प्रीफोर्क Apache सर्वर की तुलना में Nginx, Slowloris हमले के प्रति अधिक सुरक्षित क्यों है?)

(A) Nginx automatically blocks all HTTP GET requests

(B) Nginx uses an asynchronous, event-driven non-blocking architecture instead of dedicating one OS process/thread per open socket

(C) Nginx converts all incoming HTTP connections to UDP

(D) Nginx disables TCP Keep-Alive at the BIOS layer

Correct Answer: (B)

[EN] Because event-driven loops handle thousands of idle sockets with minimal RAM, slow partial headers do not exhaust worker threads.

[HI] Nginx प्रत्येक कनेक्शन के लिए अलग थ्रेड/प्रोसेस आवंटित करने के बजाय असिंक्रोनस इवेंट-ड्रिवेन लूप उपयोग करता है।

Q10. In Nginx reverse-proxy hardening, which two directives directly terminate slow client DoS attempts?

(Nginx सर्वर सुरक्षा में कौन से दो डायरेक्टिव धीमे क्लाइंट DoS हमलों को तुरंत समाप्त करते हैं?)

(A) ssl_prefer_server_ciphers and server_tokens

(B) worker_rlimit_nofile and error_page

(C) proxy_cache_valid and gzip_comp_level

(D) client_header_timeout and client_body_timeout

Correct Answer: (D)

[EN] Setting short client_header_timeout and client_body_timeout (e.g., 5-10 seconds) drops Slowloris and Slow POST sockets quickly.

[HI] client_header_timeout और client_body_timeout को कम (जैसे 5-10 सेकंड) सेट करने से धीमे अधूरे कनेक्शन तुरंत बंद हो जाते हैं।

Q11. What is a 'Zip Bomb' (Decompression Bomb) as a local or application DoS vector?

(एप्लिकेशन DoS के रूप में 'Zip Bomb' (जैसे 42.zip) किस प्रकार कार्य करता है?)

(A) A ZIP file containing an encrypted ransomware executable

(B) A network packet flooding port 21 FTP servers

(C) A tiny compressed archive (a few KB) that expands into terabytes of data, crashing antivirus scanners or exhausting disk/RAM

(D) A tool that brute-forces ZIP passwords using GPUs

Correct Answer: (C)

[EN] Decompression bombs use nested recursive archives to overwhelm automated file parsers, email scanners, and upload endpoints.

[HI] Zip Bomb कुछ KB की छोटी फाइल होती है जो अनज़िप होने पर टेराबाइट्स डेटा में बदलकर स्कैनर या सर्वर की डिस्क/मेमोरी भर देती है।

Q12. What does a 'Slow HTTP POST' (R-U-Dead-Yet / RUDY) attack do differently from Slowloris?

('Slow HTTP POST' (RUDY) हमला Slowloris से किस प्रकार अलग होता है?)

(A) It floods DNS resolvers with ANY queries

(B) It uses ICMP Echo Requests instead of TCP

(C) It sends complete HTTP headers declaring a huge Content-Length, then trickles the POST body at 1 byte per several seconds

(D) It sends malformed HTTP/3 QUIC frames only

Correct Answer: (C)

[EN] RUDY completes headers normally so header timeouts pass, then keeps the connection open by dripping the advertised body byte-by-byte.

[HI] RUDY पूरे HTTP हेडर में बड़ा Content-Length बताकर बॉडी डेटा को हर कुछ सेकंड में मात्र 1 बाइट की गति से भेजता है।

Q13. How does a Linux administrator restrict per-user process counts to prevent local Fork Bombs?

(Linux एडमिनिस्ट्रेटर लोकल Fork Bomb को रोकने के लिए प्रति-यूज़र प्रोसेस सीमा कैसे निर्धारित करता है?)

(A) Running tcpdump -i lo on port 80

(B) Setting chmod 777 on /proc/cpuinfo

(C) Editing /etc/resolv.conf to block localhost

(D) Using 'ulimit -u' or configuring nproc in /etc/security/limits.conf

Correct Answer: (D)

[EN] Setting nproc via ulimit -u or PAM limits.conf caps maximum simultaneous processes per user, containing fork bombs safely.

[HI] ulimit -u या /etc/security/limits.conf में nproc सीमा तय करके किसी यूज़र द्वारा अनियंत्रित प्रोसेस निर्माण को रोका जाता है।

Q14. What is 'Asymmetric DoS' in web application security?

(वेब एप्लिकेशन सुरक्षा में 'Asymmetric DoS' से क्या तात्पर्य है?)

(A) An attack sent only over IPv6 multicast links

(B) A single cheap attacker request triggers heavy backend computation such as unindexed wildcard DB queries or large PDF generation

(C) An attack that uses RSA-2048 asymmetric encryption keys

(D) A DoS attack requiring two separate attackers simultaneously

Correct Answer: (B)

[EN] Exploiting expensive operations (heavy DB LIKE '%x%' joins, XML Billion Laughs entity expansion) allows 1 attacker to starve a server.

[HI] जब हमलावर का एक छोटा अनुरोध सर्वर पर भारी गणना (जैसे जटिल DB क्वेरी या XML Billion Laughs एक्सपेंशन) कराकर सिस्टम को ठप कर दे।

Q15. What vulnerability does an 'XML Billion Laughs' DoS attack exploit?

('XML Billion Laughs' DoS हमला किस कमजोरी का लाभ उठाता है?)

(A) SQL string concatenation inside login forms

(B) Missing SameSite attributes on HTTP cookies

(C) Unpatched SMBv1 EternalBlue pipes

(D) Recursive external/internal XML Entity Expansion blowing up memory inside an XML parser

Correct Answer: (D)

[EN] Ten levels of nested XML entities expand a tiny <1 KB XML payload into gigabytes of text in memory unless DTD entity expansion is disabled.

[HI] XML पार्सर में नेस्टेड एंटिटी (DTD Entity Expansion) को बार-बार खोलने से <1 KB का XML मेमोरी में कई GB का हो जाता है।

Q16. Which statement regarding Denial of Service (DoS) attacks is FALSE?

(डिनायल ऑफ सर्विस (DoS) हमलों के बारे में निम्नलिखित में से कौन सा कथन असत्य (FALSE) है?)

(A) Slowloris targets application worker connection limits rather than raw network bandwidth

(B) Ping of Death exploited IP packet fragmentation exceeding 65,535 bytes

(C) A successful DoS attack gives the attacker root shell access and decrypts the database

(D) Single-source DoS attacks can often be mitigated by IP rate-limiting and firewall rules

Correct Answer: (C)

[EN] DoS attacks strictly degrade availability (uptime/responsiveness); they do not by themselves grant unauthorized authentication or data decryption.

[HI] DoS हमला केवल सिस्टम की उपलब्धता (Availability) को बाधित करता है; इससे हमलावर को रूट शेल एक्सेस या डेटाबेस डिक्रिप्शन नहीं मिलता।

Q17. Within Denial of Service (DoS) Attacks: Resource Starvation, which dos attack type directly maps to: "Web Server Worker Threads & Connections"?

(Denial of Service (DoS) Attacks: Resource Starvation में कौन सा DoS Attack Type सीधे "Web Server Worker Threads & Connections" से संबंधित है?)

(A) Fork Bomb (:(){ :|:& };:)

(B) Slowloris (Low & Slow)

(C) Ping of Death

(D) ReDoS (Catastrophic Regex)

Correct Answer: (B)

[EN] In Denial of Service (DoS) Attacks: Resource Starvation, 'Slowloris (Low & Slow)' handles 'Web Server Worker Threads & Connections' (Strict client_header_timeout & event-driven reverse proxy).

[HI] Denial of Service (DoS) Attacks: Resource Starvation में 'Slowloris (Low & Slow)' का कार्य/विवरण 'Web Server Worker Threads & Connections' (Strict client_header_timeout & event-driven reverse proxy) है।

Q18. Which option accurately describes 'Ping of Death' in Denial of Service (DoS) Attacks: Resource Starvation?

(Denial of Service (DoS) Attacks: Resource Starvation के संदर्भ में 'Ping of Death' की सही विशेषता कौन सी है?)

(A) Application CPU Cycles (O(2^n) backtracking)

(B) OS Process Table (PID) & Kernel Memory

(C) Web Server Worker Threads & Connections

(D) IPv4 Packet Reassembly Buffer (>65,535 B)

Correct Answer: (D)

[EN] 'Ping of Death' provides 'IPv4 Packet Reassembly Buffer (>65,535 B)' — key point: OS kernel IP stack validation & firewall fragment drop.

[HI] 'Ping of Death' का मुख्य विवरण 'IPv4 Packet Reassembly Buffer (>65,535 B)' है (OS kernel IP stack validation & firewall fragment drop)।

Q19. In Denial of Service (DoS) Attacks: Resource Starvation, identify the correct parameter for the specification: "Application CPU Cycles (O(2^n) backtracking)".

(Denial of Service (DoS) Attacks: Resource Starvation में "Application CPU Cycles (O(2^n) backtracking)" विवरण किस विकल्प के लिए सही है?)

(A) ReDoS (Catastrophic Regex)

(B) Ping of Death

(C) Fork Bomb (:(){ :|:& };:)

(D) Slowloris (Low & Slow)

Correct Answer: (A)

[EN] 'ReDoS (Catastrophic Regex)' corresponds to 'Application CPU Cycles (O(2^n) backtracking)' (Linear-time regex engines (RE2) & input length caps).

[HI] 'ReDoS (Catastrophic Regex)' का संबंध 'Application CPU Cycles (O(2^n) backtracking)' (Linear-time regex engines (RE2) & input length caps) से है।

Q20. Considering Denial of Service (DoS) Attacks: Resource Starvation, what key behavior defines 'Fork Bomb (:(){ :|:& };:)'?

(Denial of Service (DoS) Attacks: Resource Starvation में 'Fork Bomb (:(){ :|:& };:)' की मुख्य भूमिका या मान क्या है?)

(A) OS Process Table (PID) & Kernel Memory

(B) IPv4 Packet Reassembly Buffer (>65,535 B)

(C) Web Server Worker Threads & Connections

(D) Application CPU Cycles (O(2^n) backtracking)

Correct Answer: (A)

[EN] 'Fork Bomb (:(){ :|:& };:)' represents 'OS Process Table (PID) & Kernel Memory' (ulimit -u max user processes / systemd TasksMax).

[HI] 'Fork Bomb (:(){ :|:& };:)' का अर्थ/मान 'OS Process Table (PID) & Kernel Memory' है (ulimit -u max user processes / systemd TasksMax)।

Denial of Service (DoS) Attacks: Resource Starvation — Exam FAQs

Q1: Can a DoS attack steal user passwords or modify database records?

क्या DoS हमला उपयोगकर्ता के पासवर्ड चुरा सकता है या डेटाबेस बदल सकता है?

[EN] No. Pure DoS attacks only target Availability by crashing or slowing the service; however, attackers sometimes launch DoS as a smokescreen to distract SOC teams during a data breach.

[HI] नहीं। शुद्ध DoS हमला केवल सेवा की उपलब्धता (Availability) को प्रभावित करता है, हालांकि कई बार इसका उपयोग सुरक्षा टीम का ध्यान भटकाने के लिए भी किया जाता है।

Q2: Why is Slowloris dangerous even over a slow mobile connection?

धीमे इंटरनेट कनेक्शन पर भी Slowloris हमला इतना खतरनाक क्यों हो सकता है?

[EN] Because it consumes almost zero bandwidth—it only needs to transmit a few bytes of partial HTTP header text periodically to keep hundreds of server worker sockets occupied.

[HI] क्योंकि इसमें भारी डेटा भेजने की जरूरत नहीं होती; केवल हर कुछ सेकंड में कुछ बाइट्स अधूरा हेडर भेजकर सर्वर के सभी कनेक्शन स्लॉट व्यस्त रखे जाते हैं।

Q3: How do linear-time regex engines like Google RE2 prevent ReDoS?

Google RE2 जैसे लीनियर-टाइम रेगुलर एक्सप्रेशन इंजन ReDoS को कैसे रोकते हैं?

[EN] Instead of recursive backtracking NFA search, RE2 uses finite automata simulation (DFA/NFA state tracking) guaranteeing O(n) worst-case execution time relative to input length.

[HI] RE2 बैकट्रैकिंग के बजाय फाइनाइट ऑटोमेटा स्टेट ट्रैकिंग का उपयोग करता है, जिससे किसी भी इनपुट के लिए समय जटिलता केवल O(n) रहती है।

Related Posts

  • Loading related posts...

Post a Comment

Search Topic Notes & 20 MCQs (Hindi / English)