mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
60 lines
1.5 KiB
Markdown
60 lines
1.5 KiB
Markdown
# API Reference: Analyzing TLS Certificate Transparency Logs
|
|
|
|
## pycrtsh
|
|
|
|
```python
|
|
from pycrtsh import Crtsh
|
|
c = Crtsh()
|
|
|
|
# Search certificates by domain
|
|
certs = c.search("example.com") # exact match
|
|
certs = c.search("%.example.com") # wildcard subdomains
|
|
|
|
# Get certificate details by ID
|
|
details = c.get(cert_id, type="id")
|
|
details = c.get(sha1_hash, type="sha1")
|
|
details = c.get(sha256_hash, type="sha256")
|
|
```
|
|
|
|
## crt.sh REST API (Direct)
|
|
|
|
```python
|
|
import requests
|
|
|
|
# JSON output
|
|
resp = requests.get("https://crt.sh/?q=%.example.com&output=json")
|
|
records = resp.json()
|
|
# Fields: id, issuer_ca_id, issuer_name, common_name,
|
|
# name_value, not_before, not_after, serial_number
|
|
```
|
|
|
|
## certstream (Real-Time CT Monitoring)
|
|
|
|
```python
|
|
import certstream
|
|
|
|
def callback(message, context):
|
|
if message["message_type"] == "certificate_update":
|
|
all_domains = message["data"]["leaf_cert"]["all_domains"]
|
|
print(all_domains)
|
|
|
|
certstream.listen_for_events(callback, url="wss://certstream.calidog.io/")
|
|
```
|
|
|
|
## Key Certificate Fields
|
|
|
|
| Field | Description |
|
|
|-------|-------------|
|
|
| `common_name` | Primary domain on certificate |
|
|
| `name_value` | SAN (Subject Alternative Names) |
|
|
| `issuer_name` | Certificate Authority |
|
|
| `not_before` | Issuance date |
|
|
| `not_after` | Expiration date |
|
|
|
|
### References
|
|
|
|
- pycrtsh: https://pypi.org/project/pycrtsh/
|
|
- crt.sh: https://crt.sh/
|
|
- certstream: https://certstream.calidog.io/
|
|
- CT RFC 6962: https://datatracker.ietf.org/doc/html/rfc6962
|