styx/DEMO.md

68 lines
1 KiB
Markdown
Raw Permalink Normal View History

2020-06-03 16:20:40 +02:00
# Demo notes
```graphql
{
Node(func: eq(nodeType, "matcher")){
2020-06-03 16:20:40 +02:00
id
target
nodeType
2020-06-03 16:20:40 +02:00
full
nodes {
uid
full
meta {
full_url
}
2020-06-03 16:20:40 +02:00
}
}
}
```
2020-06-10 11:32:56 +02:00
```graphql
{
Node(func: has(nodes) ) {
uid
nodeType
2020-06-10 11:32:56 +02:00
target
timestamp
nodes {
uid
type
full
hostnames
}
}
}
```
```graphql
{
Node(func: eq(nodeType, "certstream")){
id
nodeType
certNode {
cn
sourceName
fingerprint
notBefore
notAfter
}
}
}
```
2020-06-03 16:20:40 +02:00
## Notes
* There is TOO MUCH junk data
2020-06-03 16:20:40 +02:00
* Upsert is not optimal
* What do we do with the data so it can be exploitable by analysts
* Sould we store matched data in an SQL-like db?
## TDH
* patterns: stream to IP address and not a domain (so the HTTP hostname won't be interesting) => look into any canonical name resolving to a NXDOMAIN (tls connection directly to an IP address) NO DNS => hostname is a DGA (should be a way to identify visually)
* any canonical name that is a IP address and not a domain name