मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी35k · #8139

implementing-web-application-logging-with-modsecurity

यह क्या करती है

यह फीचर ModSecurity नाम के सिक्योरिटी सिस्टम को सेट करने में मदद करता है, ताकि वेब एप्लिकेशन पर होने वाली गतिविधियाँ लॉग हों। यह एक ट्रैफिक पुलिस की तरह काम करता है, जो नोट करता है कि कौन क्या एक्सेस करने की कोशिश कर रहा है और कहीं कोई संदिग्ध गतिविधि तो नहीं।

कब इस्तेमाल करें

  • ✓अपनी वेबसाइट के लिए नया सिक्योरिटी सिस्टम इंस्टॉल करते समय।
  • ✓अपनी वेबसाइट पर हमले की कोशिशों की जाँच करने की ज़रूरत हो तब।
  • ✓बेवजह ब्लॉक से बचने के लिए सिक्योरिटी नियमों को ठीक करते समय।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-web-application-logging-with-modsecurity/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-web-application-logging-with-modsecurity/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“ModSecurity को मेरी वेबसाइट पर SQL Injection हमले की कोशिशों को लॉग करने के लिए सेट करो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

ModSecurity आपकी वेबसाइट पर आने वाली requests पर नज़र रखता है। यह नियमों के एक सेट (OWASP CRS) का इस्तेमाल करके खतरनाक गतिविधियाँ पहचानता है और बाद में विश्लेषण के लिए उन्हें log files में दर्ज करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Implementing Web Application Logging with ModSecurity

Overview

ModSecurity is an open-source WAF engine that works with Apache, Nginx, and IIS. The OWASP Core Rule Set (CRS) provides generic attack detection rules covering SQL injection, XSS, RCE, LFI, and other OWASP Top 10 attacks. ModSecurity logs full request/response data in audit logs for forensic analysis and generates alerts that feed into SIEM platforms.

When to Use

  • When deploying or configuring implementing web application logging with modsecurity capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Web server (Apache 2.4+ or Nginx) with ModSecurity v3 module
  • OWASP CRS v4.x installed
  • Log aggregation infrastructure (ELK, Splunk, or Wazuh)

Steps

  1. Install ModSecurity and configure SecRuleEngine in DetectionOnly mode
  2. Deploy OWASP CRS v4 and set paranoia level (PL1-PL4)
  3. Configure SecAuditEngine for relevant-only logging
  4. Tune false positives with SecRuleRemoveById and rule exclusions
  5. Switch to blocking mode (SecRuleEngine On) after tuning period
  6. Forward audit logs to SIEM for correlation and alerting

Expected Output

ModSecurity: Warning. Pattern match "(?:union\s+select)" [file "/etc/modsecurity/crs/rules/REQUEST-942-APPLICATION-ATTACK-SQLI.conf"] [line "45"] [id "942100"] [msg "SQL Injection Attack Detected via libinjection"] [severity "CRITICAL"]
अक्सर पूछे जाने वाले सवाल

ModSecurity क्या है?

ModSecurity एक प्रोग्राम है जो Web Application Firewall (WAF) की तरह काम करता है और आपकी वेबसाइट को आम हमलों से बचाता है।

OWASP CRS क्या है?

OWASP CRS पहले से तय सिक्योरिटी नियमों का एक सेट है, जिसे ModSecurity SQL injection और XSS जैसे खतरों को पहचानने और ब्लॉक करने के लिए इस्तेमाल करता है।

'false positives' क्या होते हैं?

False positives तब होते हैं जब सिक्योरिटी सिस्टम किसी सही काम को भी हमला समझकर ब्लॉक कर देता है। नियमों को ठीक करने से इसे रोकने में मदद मिलती है।

जानकारी

लेखक का मूल विवरण

Configure ModSecurity WAF with the OWASP Core Rule Set (CRS) for web application audit logging, tuning SecRuleEngine, SecAuditEngine, and CRS paranoia levels to reduce false positives, and writing custom SecRules for application-specific threats. Use when deploying or tuning a ModSecurity WAF, analyzing audit logs for attack detection, or reducing CRS false positives.

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#8139
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills