id: shadowpad-c2

info:
  name: ShadowPad C2 Infrastructure - Detect
  author: pussycat0x
  severity: info
  description: |
    ShadowPad constitutes various plugins having specific functionality and the malware has the capability to “plug” or “unplug” these plugins at run-time in shellcode format. It can also load additional plugins dynamically from the C2 server when required.
  metadata:
    verified: "true"
    max-request: 1
    censys-query: services.tls.certificates.leaf_data.subject_dn="C=CN, ST=myprovince, L=mycity, O=myorganization, OU=mygroup, CN=myServer"
  tags: ssl,tls,c2,ir,osint,malware,shadowpad,discovery
ssl:
  - address: "{{Host}}:{{Port}}"
    matchers:
      - type: word
        part: subject_dn
        words:
          - "CN=myServer, OU=mygroup, O=myorganization, L=mycity, ST=myprovince, C=CN"

    extractors:
      - type: json
        json:
          - ".subject_dn"
# digest: 4a0a00473045022100931d18cfd720731cd59e143339a60b75d603067b3b9c017a20eb1c5d8617078e0220568853dbf6e76a552dc630bdc64ee3ccc5d0123f5374a7276f99ef0bdc0ce875:922c64590222798bb761d5b6d8e72950