Skip to content

Commit d3bc577

Browse files
TMHSDigitalclaude
andcommitted
chore(release): v0.12.0
Dates the CHANGELOG section and adds a Security section for the four hardening fixes since v0.11.0 (TXT escaping, CNAME target validation, the zone transfer name bound, the default state path symlink). Sets CITATION.cff, the bug-report placeholder and the Monitoring page's pinned examples to 0.12.0, empties docs/_data/unreleased.yml, regenerates the flag table and removes the README's remaining Unreleased note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent b2f56b3 commit d3bc577

7 files changed

Lines changed: 31 additions & 40 deletions

File tree

‎.github/ISSUE_TEMPLATE/bug_report.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ body:
4343
attributes:
4444
label: subenum version
4545
description: Output of `subenum -version`.
46-
placeholder: v0.11.0
46+
placeholder: v0.12.0
4747
validations:
4848
required: true
4949
- type: input

‎CHANGELOG.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.12.0] - 2026-11-29
11+
1012
### Added
1113
- Homebrew and Scoop installs: `brew tap TMHSDigital/subenum https://github.com/TMHSDigital/subenum && brew install TMHSDigital/subenum/subenum` on macOS and Linux (with the shell completions and the man page), and `scoop bucket add subenum https://github.com/TMHSDigital/subenum && scoop install subenum/subenum` on Windows. The formula and manifest live in this repository; the release job rewrites them from `checksums.txt` once each stable release is public, and CI installs both from the checkout on every push (#62).
1214
- `-sources certspotter` adds a second keyless Certificate Transparency source, SSLMate Cert Spotter's issuances API, for when crt.sh is down or overloaded. Its names are candidates and `-permute` seeds like `ct`'s, each still verified by a lookup; `-ct` does not fall back to it. The unauthenticated tier is a small hourly quota, so it reads at most 10 pages per target, does not retry a 429, and keeps the names read before a later page fails or the page limit as `truncated`; a `CERTSPOTTER_API_KEY` environment variable, when set, is sent as a Bearer token for a higher quota and never printed. `pkg/subenum` gains `CertSpotter()`, and `subenum mcp -sources` accepts `certspotter` (#416).
@@ -38,6 +40,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3840
### Fixed
3941
- `-tui` no longer drops `-exclude-file`: its patterns fill the Exclude field next to `-exclude`'s. The warning about flags the form has no field for (now `-sarif`, `-inconclusive`, `-show-records` and the like) is also shown on the form, where it used to flash on stderr just before the full-screen UI covered it (#418).
4042

43+
### Security
44+
- TXT record values are stored with backslashes and non-printable bytes written as zone-file `\DDD` escapes, so the scanned zone's owner cannot put control bytes or terminal escapes into text, CSV, MCP or library output. CSV cells a spreadsheet would read as a formula get a leading quote, the Action's change summary puts record values in code spans, and the MCP scan tool says record values are data from the scanned zone.
45+
- A CNAME target with characters a host name cannot have is refused, with the error Go's own lookups give for such an answer, instead of reaching results and the terminal as it came.
46+
- A zone transfer keeps at most 100,000 names or 4 MiB of names, the same bound over all of `-axfr`'s name servers, and reports the transfer as cut; a hostile name server could otherwise make it hold far more memory than its stream size.
47+
- A symlink at the default resume state path (`subenum-resume.json` in the working directory, a path the user never named) is replaced by the state file instead of written through. A `-state` path the user gives is still followed, as `-o` is.
48+
4149
## [0.11.0] - 2026-11-18
4250

4351
### Added
@@ -474,7 +482,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
474482
- DNS resolution with configurable timeout
475483
- Command-line flags for wordlist, concurrency, and timeout
476484

477-
[Unreleased]: https://github.com/TMHSDigital/subenum/compare/v0.11.0...HEAD
485+
[Unreleased]: https://github.com/TMHSDigital/subenum/compare/v0.12.0...HEAD
486+
[0.12.0]: https://github.com/TMHSDigital/subenum/compare/v0.11.0...v0.12.0
478487
[0.11.0]: https://github.com/TMHSDigital/subenum/compare/v0.10.0...v0.11.0
479488
[0.10.0]: https://github.com/TMHSDigital/subenum/compare/v0.9.0...v0.10.0
480489
[0.9.0]: https://github.com/TMHSDigital/subenum/compare/v0.8.0...v0.9.0

‎CITATION.cff‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ keywords:
1616
- security education
1717
- go
1818
license: GPL-3.0-only
19-
version: 0.11.0
20-
date-released: "2026-11-18"
19+
version: 0.12.0
20+
date-released: "2026-11-29"

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ This table describes `main`, which can be ahead of the latest release: a release
256256
| `-w <file>` | bundled top-5000 | Wordlist file, one prefix per line; `#` comments allowed; `-` reads stdin. Repeat it to combine lists (`-w general.txt -w target.txt`); entries found in more than one are scanned once. Omit it to use the built-in list (see [Choosing a wordlist](#choosing-a-wordlist)) |
257257
| `-hosts <file>` | n/a | File of full host names to look up instead of a wordlist, such as another tool's output; `#` comments allowed; `-` reads stdin. Each target looks up only the names under it (the most specific one, when `-dL` targets nest), through the same wildcard filtering, pacing and verdict as a wordlist scan; names under no target are out of scope, never queried, and counted in one note. Cannot be combined with `-w`, `-recursive` or `-tui` |
258258
| `-dL <file>` | n/a | File of apex domains to scan, one per line (`-` reads stdin), instead of a `<domain>` argument. Each domain is an independent scan; results share one output |
259-
| `-type <list>` | `A,AAAA` | Comma-separated record types to look up: `A`, `AAAA`, `CNAME`, `NS`, `MX`, `TXT`, `SRV`, `HTTPS`. A name is found when it has a record of any listed type. `CNAME`, `NS`, `SRV` and `HTTPS` also check for [takeovers](#subdomain-takeover-hints); `MX` values are `<preference> <host>`; a `TXT` value shows a backslash and non-printable bytes as `\DDD`; `SRV` values are `<priority> <weight> <port> <target>`, found at service names such as `_sip._tcp` in the wordlist (Unreleased); `HTTPS` (RFC 9460) values are `<priority> <target>` plus the `alpn` and `port` parameters, such as `1 . alpn=h2,h3 port=443`, and cost one more query per name (Unreleased) |
259+
| `-type <list>` | `A,AAAA` | Comma-separated record types to look up: `A`, `AAAA`, `CNAME`, `NS`, `MX`, `TXT`, `SRV`, `HTTPS`. A name is found when it has a record of any listed type. `CNAME`, `NS`, `SRV` and `HTTPS` also check for [takeovers](#subdomain-takeover-hints); `MX` values are `<preference> <host>`; a `TXT` value shows a backslash and non-printable bytes as `\DDD`; `SRV` values are `<priority> <weight> <port> <target>`, found at service names such as `_sip._tcp` in the wordlist; `HTTPS` (RFC 9460) values are `<priority> <target>` plus the `alpn` and `port` parameters, such as `1 . alpn=h2,h3 port=443`, and cost one more query per name (Unreleased) |
260260
| `-exclude <list>` | n/a | Comma-separated out-of-scope names: exact (`vpn.example.com`) or `*.parent` (every name below `parent`, not `parent` itself). Excluded names are never queried, probed or expanded, and are counted as `excluded`. A target that is itself out of scope is refused before `-axfr`, `-ct`/`-sources` or the `-dry-run` preflight touch it, and `-axfr` never resolves or contacts an excluded name server |
261261
| `-exclude-file <file>` | n/a | Same patterns, one per line (`#` comments allowed), e.g. a bug-bounty program's out-of-scope list |
262262
| **Finding more names** | | |

‎docs/_data/unreleased.yml‎

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,11 @@
44
#
55
# In the release commit, empty these lists and run `make docs-flags`.
66
# subcommands (#245)
7-
commands:
8-
- report
9-
flags:
10-
- hosts
11-
- recursive-w
12-
- follow-records
13-
- srv
14-
- nsec-walk
15-
- ptr
16-
- permute-only
17-
- permute-w
7+
commands: []
8+
flags: []
189
# new values of a flag that is itself released, as flag=VALUE (#306)
19-
values:
20-
- type=SRV
21-
- type=HTTPS
22-
- simulate-zone=lab7
23-
- simulate-zone=lab8
24-
- simulate-zone=lab9
25-
- sources=certspotter
10+
values: []
2611
# action.yml inputs and outputs
2712
action: []
2813
# pkg/subenum identifiers
29-
library:
30-
- NSECWalk
31-
- CertSpotter
32-
- ParentChecks
14+
library: []

‎docs/_includes/flags.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@
1414
| `-dry-run` | - | Print the plan without scanning: candidates after dedupe and -exclude, query and duration estimates, and the resolver preflight (its only DNS query, also sent to each -r pool resolver); then exit |
1515
| `-exclude <string>` | - | Comma-separated out-of-scope names and \*.parent patterns; never queried or expanded |
1616
| `-exclude-file <string>` | - | File of out-of-scope names and \*.parent patterns, one per line (# comments allowed) |
17-
| `-follow-records` {% include unreleased.html flag="follow-records" %} | - | Also test the names under the target that found names' CNAME, MX, NS and HTTPS records point at, once each, unless they are already candidates; they count against -max-queries |
17+
| `-follow-records` | - | Also test the names under the target that found names' CNAME, MX, NS and HTTPS records point at, once each, unless they are already candidates; they count against -max-queries |
1818
| `-force` | - | Continue scanning even if wildcard DNS is detected |
1919
| `-format <string>` | text | Output format: text, json, jsonl, or csv |
2020
| `-hit-rate <int>` | 15 | In simulation mode, percentage of names that resolve (1-100) |
21-
| `-hosts <file>` {% include unreleased.html flag="hosts" %} | - | A file of full host names to resolve instead of a wordlist, one per line (- for stdin); each target looks up only the names under it, names under no target are skipped |
21+
| `-hosts <file>` | - | A file of full host names to resolve instead of a wordlist, one per line (- for stdin); each target looks up only the names under it, names under no target are skipped |
2222
| `-inconclusive <string>` | - | Write the names still without an answer (timeout, refused, other) to this file, one per line, to rescan with -w |
2323
| `-log-format <string>` | text | Diagnostics format on stderr: text, or json for one JSON object per line (level, kind, target, message); results on stdout are unchanged |
2424
| `-max-duration <duration>` | 0s | Time budget for the whole run, e.g. 20m (0 = unlimited); then no new names are tested, lookups in flight finish, and the run ends with its report, a degraded verdict and saved state for -resume to continue from |
2525
| `-max-queries <int>` | - | Max candidate names to test (0 = unlimited); each name sends one query per record type, per attempt |
2626
| `-no-abort` | - | Do not abort when the resolver failure rate exceeds 20% (warning is still emitted) |
27-
| `-nsec-walk` {% include unreleased.html flag="nsec-walk" %} | - | When the target's zone is signed with plain DNSSEC NSEC, list it by walking the NSEC chain at its name server first, and add the names as candidates and -permute seeds; one query per name, paced by -rate and bounded by -max-queries, -max-duration and -exclude |
27+
| `-nsec-walk` | - | When the target's zone is signed with plain DNSSEC NSEC, list it by walking the NSEC chain at its name server first, and add the names as candidates and -permute seeds; one query per name, paced by -rate and bounded by -max-queries, -max-duration and -exclude |
2828
| `-o <file>` | - | Write results to file (in addition to stdout); repeat for several files, each in -format or in the format named as a prefix, format:path (jsonl:results.jsonl) |
2929
| `-permute` | - | After each scan, scan permutations of the names found (api -&gt; api-dev, dev-api, dev.api, api2, ...) |
30-
| `-permute-only` {% include unreleased.html flag="permute-only" %} | - | Skip the wordlist scan and run only the -permute pass over the -seeds names; needs -seeds, and cannot be used with -w, -hosts, -recursive, -recursive-w or the flags that add candidates (-ct, -sources, -axfr, -nsec-walk, -srv, -follow-records) |
31-
| `-permute-w <file>` {% include unreleased.html flag="permute-w" %} | - | Path to a file (- for stdin) of the words -permute combines with each seed name, one per line, instead of the built-in list; repeat to combine several |
30+
| `-permute-only` | - | Skip the wordlist scan and run only the -permute pass over the -seeds names; needs -seeds, and cannot be used with -w, -hosts, -recursive, -recursive-w or the flags that add candidates (-ct, -sources, -axfr, -nsec-walk, -srv, -follow-records) |
31+
| `-permute-w <file>` | - | Path to a file (- for stdin) of the words -permute combines with each seed name, one per line, instead of the built-in list; repeat to combine several |
3232
| `-print-config` | - | Print every setting's effective value and its source (flag, env, config or default), then exit |
3333
| `-progress` | true | Show progress during scanning |
34-
| `-ptr` {% include unreleased.html flag="ptr" %} | - | After each scan, look up the PTR records of the public addresses found, and test the names under the target they give, unless already found; the PTR queries are paced by -rate and bounded by -max-queries, -max-duration and -exclude, which also takes reverse zones such as \*.2.0.192.in-addr.arpa |
34+
| `-ptr` | - | After each scan, look up the PTR records of the public addresses found, and test the names under the target they give, unless already found; the PTR queries are paced by -rate and bounded by -max-queries, -max-duration and -exclude, which also takes reverse zones such as \*.2.0.192.in-addr.arpa |
3535
| `-r <string>` | - | File of resolvers (ip[:port], tls://host[:port] or https://host/path, one per line) to spread queries over; every hit is re-validated against -dns-server |
3636
| `-rate <int>` | - | Max DNS queries per second on the wire, all workers combined; counts every record type, retry and wildcard probe (0 = unlimited) |
3737
| `-rate-per-resolver <int>` | - | With -r, max DNS queries per second sent to each pool resolver; -rate still caps the total (0 = unlimited) |
3838
| `-recursive` | - | Recursively enumerate subdomains of discovered subdomains |
39-
| `-recursive-w <file>` {% include unreleased.html flag="recursive-w" %} | - | Path to a wordlist file (- for stdin) of the labels -recursive tries under each name it finds, at depth 2 and below; repeat to combine several; omitted: the -w list |
39+
| `-recursive-w <file>` | - | Path to a wordlist file (- for stdin) of the labels -recursive tries under each name it finds, at depth 2 and below; repeat to combine several; omitted: the -w list |
4040
| `-resume <string>` | - | Resume a run that was interrupted, ran out of -max-duration or was aborted, from its state file (no other arguments but the pacing flags -rate, -rate-per-resolver, -t, -timeout, -attempts, -auto-rate, -no-abort and -max-duration) |
4141
| `-retries <int>` | - | Deprecated: use -attempts instead |
4242
| `-retry-inconclusive` | - | After each scan, look up once more (against -dns-server) every name that timed out, was refused or failed; names it resolves are reported, but not expanded by -recursive |
@@ -46,17 +46,17 @@
4646
| `-show-records` | - | In text format, append each result's records (TYPE=value) |
4747
| `-silent` | - | Pipeline mode: bare result names on stdout, and only errors (and a simulation warning) on stderr |
4848
| `-simulate` | - | Run in simulation mode without actual DNS queries (for testing) |
49-
| `-simulate-zone <string>` | - | Lab mode: answer every query from this scenario file, or a built-in scenario such as lab1 (lab1-lab6, lab7, lab8, lab9), via a local DNS server, so no traffic leaves the machine (see the Labs page) lab7, lab8, lab9: {% include unreleased.html value="simulate-zone=lab7" %} |
50-
| `-sources <string>` | - | Comma-separated keyless passive sources whose names become candidates and -permute seeds: ct (Certificate Transparency, crt.sh), wayback (Wayback Machine), certspotter (Certificate Transparency, SSLMate Cert Spotter; up to 10 pages, set CERTSPOTTER\_API\_KEY for a higher quota); one HTTPS request per source and target certspotter: {% include unreleased.html value="sources=certspotter" %} |
51-
| `-srv` {% include unreleased.html flag="srv" %} | - | Also look up a built-in list of about 50 service names (\_sip.\_tcp, \_autodiscover.\_tcp, \_ldap.\_tcp, ...) under each target; needs SRV in -type |
49+
| `-simulate-zone <string>` | - | Lab mode: answer every query from this scenario file, or a built-in scenario such as lab1 (lab1-lab6, lab7, lab8, lab9), via a local DNS server, so no traffic leaves the machine (see the Labs page) |
50+
| `-sources <string>` | - | Comma-separated keyless passive sources whose names become candidates and -permute seeds: ct (Certificate Transparency, crt.sh), wayback (Wayback Machine), certspotter (Certificate Transparency, SSLMate Cert Spotter; up to 10 pages, set CERTSPOTTER\_API\_KEY for a higher quota); one HTTPS request per source and target |
51+
| `-srv` | - | Also look up a built-in list of about 50 service names (\_sip.\_tcp, \_autodiscover.\_tcp, \_ldap.\_tcp, ...) under each target; needs SRV in -type |
5252
| `-state <string>` | subenum-resume.json | Where a run that was interrupted, ran out of -max-duration or was aborted saves its state for -resume |
5353
| `-stats <string>` | - | Write a JSON run-quality report (outcomes, queries sent, verdict) to this file |
5454
| `-t <int>` | 100 | Number of concurrent workers |
5555
| `-takeover-providers <string>` | - | File of takeover-prone services, one "&lt;suffix&gt; &lt;name&gt;" per line (.example-cdn.net example-cdn; # comments allowed; name - removes a suffix), added to the built-in list for takeover hints |
5656
| `-takeover-providers-only` | - | Use only the -takeover-providers file, not the built-in provider list |
5757
| `-timeout <int>` | 1000 | DNS lookup timeout in milliseconds |
5858
| `-tui` | - | Launch the interactive terminal UI, its form pre-filled from the other flags and the domain argument |
59-
| `-type <string>` | A,AAAA | Comma-separated DNS record types to look up: A, AAAA, CNAME, NS, MX, TXT, SRV, HTTPS (CNAME, NS, SRV and HTTPS aliases also check for takeovers; with NS, a name that fails with SERVFAIL is asked of the zone's own name servers for its delegation) SRV, HTTPS: {% include unreleased.html value="type=SRV" %} |
59+
| `-type <string>` | A,AAAA | Comma-separated DNS record types to look up: A, AAAA, CNAME, NS, MX, TXT, SRV, HTTPS (CNAME, NS, SRV and HTTPS aliases also check for takeovers; with NS, a name that fails with SERVFAIL is asked of the zone's own name servers for its delegation) |
6060
| `-v` | - | Enable verbose output |
6161
| `-version` | - | Show version information |
6262
| `-w <file>` | - | Path to a wordlist file (- for stdin); repeat to combine several, deduplicated; omitted: the bundled top-5000 list |

‎docs/monitoring.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
steps:
100100
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
101101
- id: subenum
102-
uses: TMHSDigital/subenum@v0.11.0 # pin a release, or its commit SHA
102+
uses: TMHSDigital/subenum@v0.12.0 # pin a release, or its commit SHA
103103
with:
104104
domain: example.com # a domain you own or may test
105105
wordlist: wordlist.txt
@@ -188,7 +188,7 @@ permissions:
188188
189189
env:
190190
TARGET: example.com # a domain you own or are authorized to scan
191-
SUBENUM_VERSION: 0.11.0 # a release tag without the "v"
191+
SUBENUM_VERSION: 0.12.0 # a release tag without the "v"
192192
193193
jobs:
194194
monitor:

0 commit comments

Comments
 (0)