Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
threatest — खतरे की पहचान के नियमों के एंड-टू-एंड परीक्षण के लिए CLI और Go फ्रेमवर्क। Datadog और Elastic Security जैसे सुरक्षा प्लेटफार्मों में हमले की तकनीकों को विस्फोटित करता है और अलर्ट सत्यापित करता है। | Kitploit
उपकरण/GitHubGitHub/datadog/threatest
रक्षात्मक उपकरणपेनिट्रेशन टेस्टिंगरेड टीमिंग
GitHubdatadog/threatest

threatest

खतरे की पहचान के नियमों के एंड-टू-एंड परीक्षण के लिए CLI और Go फ्रेमवर्क। Datadog और Elastic Security जैसे सुरक्षा प्लेटफार्मों में हमले की तकनीकों को विस्फोटित करता है और अलर्ट सत्यापित करता है।

रिपॉजिटरी देखेंवेबसाइट
3452761 दिन पहलेKitploit द्वारा समीक्षित

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

Threatest

unit tests static analysis

Threatest

Threatest एक CLI और Go फ्रेमवर्क है जो एंड-टू-एंड खतरे का पता लगाने के परीक्षण के लिए है।

Threatest आपको एक हमले की तकनीक को डेटोनेट करने और यह सत्यापित करने की अनुमति देता है कि आपकी पसंदीदा सुरक्षा प्लेटफॉर्म में आप जिस अलर्ट की उम्मीद कर रहे हैं, वह उत्पन्न हुआ या नहीं।

घोषणा ब्लॉग पोस्ट पढ़ें: https://securitylabs.datadoghq.com/articles/threatest-end-to-end-testing-threat-detection/

अवधारणाएँ

डेटोनेटर

एक डेटोनेटर वर्णन करता है कि हमले की तकनीक कैसे और कहाँ निष्पादित की जाती है।

समर्थित डेटोनेटर:

  • स्थानीय कमांड निष्पादन
  • SSH कमांड निष्पादन
  • Strutus Red Team
  • AWS CLI डेटोनेटर
  • AWS डेटोनेटर (केवल प्रोग्रामेटिक, CLI के साथ काम नहीं करता)

अलर्ट मैचर

एक अलर्ट मैचर एक प्लेटफॉर्म-विशिष्ट एकीकरण है जो जाँच सकता है कि क्या अपेक्षित अलर्ट ट्रिगर हुआ था।

समर्थित अलर्ट मैचर:

  • Datadog सुरक्षा सिग्नल
  • Elastic Security सिग्नल

डेटोनेशन और अलर्ट सहसंबंध

प्रत्येक डेटोनेशन को एक UUID सौंपा जाता है। यह UUID डेटोनेशन में परिलक्षित होता है और यह सुनिश्चित करने के लिए उपयोग किया जाता है कि मिलान किया गया अलर्ट इस डेटोनेशन से बिल्कुल मेल खाता है।

यह कैसे किया जाता है यह डेटोनेटर पर निर्भर करता है; उदाहरण के लिए, Strutus Red Team और AWS डेटोनेटर इसे user-agent में इंजेक्ट करते हैं; SSH डेटोनेटर UUID वाले मूल प्रक्रिया का उपयोग करता है।

उपयोग

CLI के माध्यम से

Threatest एक CLI के साथ आता है जिसका उपयोग आप YAML के रूप में वर्णित परीक्षण परिदृश्यों को चलाने के लिए कर सकते हैं, एक विशिष्ट स्कीमा का अनुसरण करते हुए। आप इस स्कीमा को अपने संपादक में कॉन्फ़िगर कर सकते हैं ताकि इन-IDE लिंटिंग और ऑटोकम्प्लीशन का लाभ उठाया जा सके (देखें VSCode के लिए दस्तावेज़ीकरण YAML एक्सटेंशन का उपयोग करते हुए)।

CLI को बाइनरी रिलीज़ डाउनलोड करके या Homebrew के साथ इंस्टॉल करें:

root@kitploit:~
brew tap datadog/threatest https://github.com/datadog/threatest
brew install datadog/threatest/threatest

नमूना उपयोग:

root@kitploit:~
$ threatest lint scenarios.threatest.yaml
All 6 scenarios are syntaxically valid

# Local detonation
$ threatest run local-scenarios.threatest.yaml

# Remote detonation over SSH
$ threatest run scenarios.threatest.yaml --ssh-host test-box --ssh-username vagrant

# Alternatively, specify SSH parameters from environment variables
$ export THREATEST_SSH_HOST=test-box
$ export THREATEST_SSH_USERNAME=vagrant
$ threatest run scenarios.threatest.yaml

नमूना परिदृश्य परिभाषा फ़ाइलें

  • SSH पर डेटोनेट करना
root@kitploit:~
scenarios:
  # Remote detonation over SSH
  # Note: SSH configuration is provided using the --ssh-host, --ssh-username and --ssh-keyfile CLI arguments
  - name: curl metadata service
    detonate:
      remoteDetonator:
        commands: ["curl http://169.254.169.254 --connect-timeout 1"]
    expectations:
      - timeout: 1m
        datadogSecuritySignal:
          name: "Network utility accessed cloud metadata service"
          severity: medium
  • Strutus Red Team का उपयोग करके डेटोनेट करना
root@kitploit:~
scenarios:
  # Stratus Red Team detonation
  # Note: You must be authenticated to the relevant cloud provider before running it
  # The example below is equivalent to manually running "stratus detonate aws.exfiltration.ec2-security-group-open-port-22-ingress"
  - name: opening a security group to the Internet
    detonate:
      stratusRedTeamDetonator:
        attackTechnique: aws.exfiltration.ec2-security-group-open-port-22-ingress
    expectations:
      - timeout: 15m
        datadogSecuritySignal:
          name: "Potential administrative port open to the world via AWS security group"
  • AWS CLI कमांड का उपयोग करके डेटोनेट करना
root@kitploit:~
scenarios:
  # AWS CLI detonation
  # Note: You must be authenticated to AWS before running it and have the AWS CLI installed
  - name: opening a security group to the Internet
    detonate:
      awsCliDetonator:
        script: |
          set -e
          
          # Setup
          vpc=$(aws ec2 create-vpc --cidr-block 10.0.0.0/16 --query Vpc.VpcId --output text)
          sg=$(aws ec2 create-security-group --group-name sample-sg --description "Test security group" --vpc-id $vpc --query GroupId --output text)
          
          # Open security group
          aws ec2 authorize-security-group-ingress --group-id $sg --protocol tcp --port 22 --cidr 0.0.0.0/0
          
          # Cleanup
          aws ec2 delete-security-group --group-id $sg
          aws ec2 delete-vpc --vpc-id $vpc
    expectations:
      - timeout: 15m
        datadogSecuritySignal:
          name: "Potential administrative port open to the world via AWS security group"

आप परीक्षण परिणामों को JSON फ़ाइल में आउटपुट कर सकते हैं:

root@kitploit:~
$ threatest run scenarios.threatest.yaml --output test-results.json
$ cat test-results.json
[
  {
    "description": "change user password",
    "isSuccess": true,
    "errorMessage": "",
    "durationSeconds": 22.046627348,
    "timeDetonated": "2022-11-15T22:26:14.182844+01:00"
  },
  {
    "description": "adding an SSH key",
    "isSuccess": true,
    "errorMessage": "",
    "durationSeconds": 23.604699625,
    "timeDetonated": "2022-11-15T22:26:14.182832+01:00"
  },
  {
    "description": "change user password",
    "isSuccess": false,
    "errorMessage": "At least one scenario failed:\n\nchange user password returned: change user password: 1 assertions did not pass\n =\u003e Did not find Datadog security signal 'bar'\n",
    "durationSeconds": 3.505294235,
    "timeDetonated": "2022-11-15T22:26:36.229349+01:00"
  }
]

डिफ़ॉल्ट रूप से, परिदृश्य अधिकतम 5 की समानता के साथ चलाए जाते हैं। आप --parallelism तर्क का उपयोग करके इस सेटिंग को बढ़ा सकते हैं। ध्यान दें कि रिमोट SSH डेटोनेटर का उपयोग करते समय, प्रत्येक चलने वाला परिदृश्य एक नया SSH कनेक्शन स्थापित करता है।

प्रोग्रामेटिक रूप से Threatest का उपयोग करना

पूर्ण प्रोग्रामेटिक उपयोग उदाहरण के लिए उदाहरण देखें।

Datadog Cloud SIEM सिग्नल का परीक्षण जो Strutus Red Team द्वारा ट्रिगर किया गया है

root@kitploit:~
threatest := Threatest()

threatest.Scenario("AWS console login").
  WhenDetonating(StratusRedTeamTechnique("aws.initial-access.console-login-without-mfa")).
  Expect(DatadogSecuritySignal("AWS Console login without MFA", WithSeverity("medium"))).
  WithTimeout(15 * time.Minute)

assert.NoError(t, threatest.Run())

SSH पर कमांड चलाकर ट्रिगर किए गए Datadog Cloud Workload Security सिग्नल का परीक्षण

root@kitploit:~
ssh, _ := NewSSHCommandExecutor("test-box", "", "")

threatest := Threatest()

threatest.Scenario("curl to metadata service").
  WhenDetonating(NewCommandDetonator(ssh, "curl http://169.254.169.254 --connect-timeout 1")).
  Expect(DatadogSecuritySignal("EC2 Instance Metadata Service Accessed via Network Utility"))

assert.NoError(t, threatest.Run())
टूल डाउनलोड करें