
Log4Shell (CVE-2021-44228) के लिए आधिकारिक Red Hat Log4j डिटेक्टर स्क्रिप्ट RHSB-2021-009 का उपयोग करके लक्षित Linux होस्टों की जाँच करने हेतु Ansible playbook।
हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।
अभी तक कोई लोकप्रियता डेटा नहीं है।
लक्षित Linux होस्ट्स को स्कैन करने के लिए Ansible role, जो Log4Shell (CVE-2021-44228) हेतु आधिकारिक Red Hat Log4j डिटेक्टर स्क्रिप्ट RHSB-2021-009 का उपयोग करता है।
Red Hat संस्करण 1.3 डिटेक्टर 2022-01-10 के साथ परीक्षण किया गया।
कोड Ansible प्लेबुक के रूप में भी उपलब्ध है lucab85/log4j-cve-2021-44228
ansible 2.9+
डिफ़ॉल्ट चर मान - defaults/main.yml:
sh_detector: "cve-2021-44228--2022-01-10-1242.sh"
sh_signature: 'cve-2021-44228--2022-01-10-1242.sh.asc'
detector_baseurl: 'https://access.redhat.com/sites/default/files/'
detector_path: "/var/"
detector_dir: "/opt/cve-2021-44228/"
detector_run_dir: 'tmp'
detector_options: '-n -d --no-progress --scan {{ detector_path }}'
gpg_keyid: '7514F77D8366B0D9'
gpg_server: "pgp.mit.edu"
clean_run_before: true
delete_after: true
verify_gpg: false
sh_detector: डिटेक्टर bash स्क्रिप्ट फ़ाइल का फ़ाइलनामsh_signature: डिटेक्टर GPG हस्ताक्षर फ़ाइल का फ़ाइलनामdetector_baseurl: पिछली फ़ाइलें डाउनलोड करने के लिए आधार URLdetector_path: निरीक्षण करने का पथ (डिफ़ॉल्ट /var/)detector_dir: डिटेक्टर का डाउनलोड पथ (डिफ़ॉल्ट detector_dir - /opt/cve-2021-44228/) ध्यान दें: वॉल्यूम को exec अनुमति की आवश्यकता है!detector_run_dir: रन से पहले बनाई जाने वाली उपनिर्देशिका (डिफ़ॉल्ट tmp)detector_options: डिटेक्टर स्क्रिप्ट के लिए कमांड लाइन विकल्प (डिफ़ॉल्ट -n -d --no-progress --scan {{ detector_path }})gpg_keyid: सत्यापन के लिए डाउनलोड की जाने वाली GPG सार्वजनिक कुंजी (डिफ़ॉल्ट Red Hat Product Security 7514F77D8366B0D9)gpg_server: वह GPG सर्वर जहाँ से GPG सार्वजनिक कुंजी डाउनलोड करनी है (डिफ़ॉल्ट pgp.mit.edu)clean_run_before: निष्पादन से पहले रन निर्देशिका को हटाएँ और पुनः बनाएँ - डिटेक्टर को एक खाली निर्देशिका की आवश्यकता है (डिफ़ॉल्ट true)delete_after: निष्पादन के बाद detector_dir को हटाएँ (डिफ़ॉल्ट false)verify_gpg: GPG हस्ताक्षर डाउनलोड और सत्यापन करें (डिफ़ॉल्ट: false)कोई नहीं।
पहले Ansible role lucab85.ansible_role_log4shell का नवीनतम संस्करण Ansible Galaxy से डाउनलोड करें:
ansible-galaxy install lucab85.ansible_role_log4shell
यह lucab85.ansible_role_log4shell role का उपयोग कैसे करें, इसका एक उदाहरण है (चरों को पैरामीटर के रूप में पारित करके):
---
- name: run detector
hosts: all
become: true
roles:
- role: lucab85.ansible_role_log4shell
detector_path: "/var/www"
MIT / BSD
यह role 2021 में Luca Berton द्वारा बनाया गया था, जो Ansible Pilot के लेखक हैं।
अधिक जानकारी:
मेरा समर्थन करने के लिए धन्यवाद: