rcekit 3.19.0__tar.gz → 3.20.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rcekit-3.19.0 → rcekit-3.20.0}/CHANGELOG.md +162 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/PKG-INFO +18 -2
- {rcekit-3.19.0 → rcekit-3.20.0}/README.md +17 -1
- {rcekit-3.19.0 → rcekit-3.20.0}/docs/guide.md +10 -1
- {rcekit-3.19.0 → rcekit-3.20.0}/docs/reference.md +38 -2
- {rcekit-3.19.0 → rcekit-3.20.0}/rcekit.egg-info/PKG-INFO +18 -2
- {rcekit-3.19.0 → rcekit-3.20.0}/rcekit.py +248 -14
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/test_bench_runner.py +405 -3
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/test_generator.py +218 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/CONTRIBUTING.md +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/LICENSE +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/MANIFEST.in +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/SECURITY.md +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/docs/generation.md +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/docs/oracle-model.md +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/docs/verify-it-yourself.md +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/pyproject.toml +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/rcekit.egg-info/SOURCES.txt +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/rcekit.egg-info/dependency_links.txt +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/rcekit.egg-info/entry_points.txt +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/rcekit.egg-info/top_level.txt +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/setup.cfg +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/templates/payloads.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/README.md +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/fastjson-1.2.83.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/flask-ssti-syntax.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/gitlist-cve-2018-1000533-argv.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/hugegraph-gremlin-eval.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/hugegraph-gremlin-reflected-class.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/hugegraph-gremlin-shell.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/log4shell-cve-2021-44228.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/mongo-express-where-boolean.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/opentsdb-cve-2023-25826.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/php-inclusion-file-read.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/php-inclusion-include-execute.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/struts2-s2-001.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/thinkphp-lang-include-execute.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/tomcat-cve-2017-12615.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/webmin-cve-2019-15107-enumerated.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/webmin-cve-2019-15107-file.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/webmin-cve-2019-15107-time.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/cases/webmin-cve-2019-15107.json +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/requests/mongo-express-literal.txt +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/requests/mongo-express-where.txt +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/requests/webmin.txt +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/bench/runner.py +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/test_corpus_embedding.py +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tests/test_docs.py +0 -0
- {rcekit-3.19.0 → rcekit-3.20.0}/tools/embed_corpus.py +0 -0
|
@@ -509,6 +509,166 @@ formats, or the template schema.
|
|
|
509
509
|
|
|
510
510
|
No version bump -- this is documentation and tests only.
|
|
511
511
|
|
|
512
|
+
## [3.20.0] — 2026-12-04
|
|
513
|
+
|
|
514
|
+
### Added
|
|
515
|
+
|
|
516
|
+
- **A `--detect-json` report says which invocation wrote it.** The report
|
|
517
|
+
carried `rcekit_version`, `target`, `methods`, `verdict`, `counts` and
|
|
518
|
+
`probes` -- six fields, none of them about *this* run. A run that refuses to
|
|
519
|
+
start exits non-zero **before** the writer is reached, so the report the
|
|
520
|
+
previous run left stays on disk byte for byte, and a caller reusing one
|
|
521
|
+
output path across runs read a stale file with nothing in it to say so.
|
|
522
|
+
|
|
523
|
+
Measured: a clean run wrote a report; a second invocation to the same path
|
|
524
|
+
with an unknown `--methods` name exited 1 and left the earlier report
|
|
525
|
+
byte-identical (same md5). Nothing in the file, and nothing in the schema,
|
|
526
|
+
distinguished it from a fresh one.
|
|
527
|
+
|
|
528
|
+
So two fields. `run_id` is minted once per invocation and **printed on the
|
|
529
|
+
`[detect]` line that names the path**, which is what makes it usable: the
|
|
530
|
+
comparison a caller makes is an equality rather than a time window. That is
|
|
531
|
+
the half a timestamp cannot do alone -- a report written to a mounted volume
|
|
532
|
+
by a container whose clock drifted, or read by a job in another timezone,
|
|
533
|
+
defeats a window and not an equality. `generated_at` is a tz-aware UTC
|
|
534
|
+
ISO-8601 stamp, and it stays because it is the only field that dates the
|
|
535
|
+
evidence for a human reading the file months later.
|
|
536
|
+
|
|
537
|
+
**Nothing is written on an early failure, and that is the contract rather
|
|
538
|
+
than a gap.** Both alternatives are worse: a placeholder report would
|
|
539
|
+
overwrite the evidence the previous run left, and refusing to run when the
|
|
540
|
+
path exists would break every caller that reuses one. The exit status already
|
|
541
|
+
answers whether the run started; `run_id` answers whether this file came from
|
|
542
|
+
it. The two together are complete, and `README.md`'s CI guidance now says so
|
|
543
|
+
in those terms.
|
|
544
|
+
|
|
545
|
+
Additive: no field, verdict name or exit code changed, and the bench harness
|
|
546
|
+
reads `verdict`, `counts` and `probes` exactly as before.
|
|
547
|
+
|
|
548
|
+
### Fixed
|
|
549
|
+
|
|
550
|
+
- **An interrupted `--detect-json` write destroyed the previous report as well
|
|
551
|
+
as the new one.** `open(path, "w")` truncates before a byte is written, so a
|
|
552
|
+
crash, a full disk or a `TypeError` out of `json.dump` left a half-written
|
|
553
|
+
document where a readable one had been -- and a truncated report is worse
|
|
554
|
+
than a stale one, because a stale report is answered by comparing the run id
|
|
555
|
+
while a truncated one fails to parse at all.
|
|
556
|
+
|
|
557
|
+
The document is now staged beside the target and moved into place with
|
|
558
|
+
`os.replace`. Beside it rather than in a temp directory because `os.replace`
|
|
559
|
+
is atomic within one filesystem and not across two, and a report collected
|
|
560
|
+
off a mounted volume -- which is how the bench harness reads one -- is on
|
|
561
|
+
another. The staging name carries the run id, so two runs writing the same
|
|
562
|
+
path cannot stage over each other, and the debris is removed on any failure
|
|
563
|
+
while the previous report is left untouched.
|
|
564
|
+
|
|
565
|
+
It is atomic **where the directory allows it**, and that qualifier is not
|
|
566
|
+
hypothetical. An atomic replace has to create a sibling and rename it, and
|
|
567
|
+
both need write permission on the *directory* -- which `tests/bench/`
|
|
568
|
+
deliberately withholds. `run_rcekit` pre-creates the report at mode `0666`
|
|
569
|
+
inside a directory at `0711`, so a container under Docker user-namespace
|
|
570
|
+
remapping can write that one file and create nothing beside it; the harness
|
|
571
|
+
says so itself: "nobody else can create, replace or unlink entries here".
|
|
572
|
+
A writer that only ever staged raised `PermissionError` there, published no
|
|
573
|
+
report, and left every bench case reading `nothing-tested` -- the one false
|
|
574
|
+
clean that harness exists to prevent. So an `OSError` out of the staged
|
|
575
|
+
write or the rename falls back to writing the report in place: where the
|
|
576
|
+
atomic path is available the previous report survives any failure, and
|
|
577
|
+
where it is not the writer degrades to exactly its pre-3.20.0 behaviour
|
|
578
|
+
rather than to something worse.
|
|
579
|
+
|
|
580
|
+
The document is also serialised **before any file is opened**, on either
|
|
581
|
+
path, so a value that cannot be encoded raises with the previous report and
|
|
582
|
+
the directory both untouched. The old writer discovered that with the file
|
|
583
|
+
already truncated.
|
|
584
|
+
|
|
585
|
+
- **A restrictive mode on an existing report no longer survives only by
|
|
586
|
+
accident.** The truncating write kept the inode, and with it the mode. An
|
|
587
|
+
`os.replace` publishes the staging file instead, which was created under the
|
|
588
|
+
current umask -- so replacing a report an operator had set to `0600` would
|
|
589
|
+
have produced a `0644` one under umask `022`. The report carries the full
|
|
590
|
+
target URL and every probe's evidence, so that is access to engagement data
|
|
591
|
+
rather than a tidiness point. The mode of the report being replaced is now
|
|
592
|
+
carried onto its replacement. Only ever *preserved*, in both directions: a
|
|
593
|
+
report that did not exist is still created under the umask, and a `0666` one
|
|
594
|
+
-- which is exactly what the bench harness pre-creates -- is not narrowed.
|
|
595
|
+
|
|
596
|
+
And the staging file is narrowed **before a byte of evidence goes into it**,
|
|
597
|
+
which is the half that makes the other one worth anything. `open` creates it
|
|
598
|
+
under the umask, so setting the published mode after writing left the whole
|
|
599
|
+
report on disk at `0644` until the change landed -- and a local user with
|
|
600
|
+
access to the directory who opened it inside that window keeps the descriptor
|
|
601
|
+
across the change. Measured against that ordering: 443 bytes were already
|
|
602
|
+
written when the mode was first set. The file is now created empty, narrowed
|
|
603
|
+
to owner-only, written, and only then set to the mode it is published with.
|
|
604
|
+
An empty file discloses nothing, so the moment it spends at the umask costs
|
|
605
|
+
nothing, and the mode it was born with is what a first report still ends up
|
|
606
|
+
at. `ReportStagingModeTestCase` watches the mode changes rather than the
|
|
607
|
+
file, because the window is an ordering and not a state -- so it runs
|
|
608
|
+
everywhere, and all 3 of its tests fail against the old ordering.
|
|
609
|
+
|
|
610
|
+
## [3.19.1] — 2026-12-04
|
|
611
|
+
|
|
612
|
+
### Fixed
|
|
613
|
+
|
|
614
|
+
- **A chain never substituted the payload into a step’s path, and never
|
|
615
|
+
encoded it anywhere.** `_run_chain_steps` resolved `{var}` and then did a
|
|
616
|
+
raw `.replace(mark, payload)` for every other position, while the
|
|
617
|
+
single-request path has always put each injection point through
|
|
618
|
+
`_encode_for_location`. One omission, three defects — and a chain is the
|
|
619
|
+
delivery a sink behind a login is reached through, so each was a false
|
|
620
|
+
answer about a target nothing else could reach.
|
|
621
|
+
|
|
622
|
+
**The marker in a step’s `path` was not substituted at all.** `subst`
|
|
623
|
+
resolves `{var}`; nothing resolved the marker. The step went out carrying
|
|
624
|
+
the literal string `FUZZ`, the sink never saw a payload, and every oracle
|
|
625
|
+
read `negative` — the false clean this project exists to refuse. A GET
|
|
626
|
+
endpoint behind a login is the most ordinary shape a chain is pointed at,
|
|
627
|
+
and it was the one shape that could not work. Measured: a query-string
|
|
628
|
+
command-injection sink driven through a chain reported `negative` on all 6
|
|
629
|
+
probes before, and `executed` after. Worse while it lasted, `carried_mark`
|
|
630
|
+
checks `step["path"]` for the marker, so the code believed the payload had
|
|
631
|
+
landed there and timed that step as the injected one — `injected_elapsed`
|
|
632
|
+
was attributed to a step that received no payload.
|
|
633
|
+
|
|
634
|
+
Each URL position is now encoded for itself, as `_build_verify_request`
|
|
635
|
+
already does for a single request: `?` and `&` are structure in a query
|
|
636
|
+
string and data in a path segment, so one encoder chosen for the whole URL
|
|
637
|
+
would corrupt whichever position it was not chosen for — and a step may
|
|
638
|
+
carry the marker in both.
|
|
639
|
+
|
|
640
|
+
**A `json` step stopped being JSON.** Raw, a payload carrying a double
|
|
641
|
+
quote closed the string it was dropped into: `{"host": "FUZZ"}` became
|
|
642
|
+
`{"host": ""; echo …#"}`. That is the whole `dq` sink-shape rung. The
|
|
643
|
+
verdict it produced is worse than the lost coverage — the target answered
|
|
644
|
+
400 to a body RCEKit had malformed, the quote-free control parsed and got
|
|
645
|
+
through, and `payload_refused` read the pair as a filter. Measured against
|
|
646
|
+
a fixture with no filter in it: 5 of 8 probes reported `blocked`, "a filter
|
|
647
|
+
refused the payload … the sink never saw it". Now `json_string`, and the
|
|
648
|
+
payload survives the escaping byte for byte.
|
|
649
|
+
|
|
650
|
+
**A header step could not carry a newline.** A header value with a raw
|
|
651
|
+
newline is not a request http.client will send, so the `newline`
|
|
652
|
+
sink-shape rung was lost to `error` on every chain it went through. Now
|
|
653
|
+
the `header` encoder folds CR/LF to spaces, which is what the
|
|
654
|
+
single-request path has always done, and the probe arrives with a status to
|
|
655
|
+
be judged on.
|
|
656
|
+
|
|
657
|
+
`form` stays `raw` deliberately: `urlencode` encodes every value it is
|
|
658
|
+
handed, and encoding beforehand would percent-encode the first pass’s
|
|
659
|
+
percent signs. A raw `body` stays `raw` too — the operator chose the
|
|
660
|
+
format. An upload’s filename moves to `multipart_filename`, since a part
|
|
661
|
+
header is where a newline forges a new part rather than corrupting one
|
|
662
|
+
value.
|
|
663
|
+
|
|
664
|
+
**Why none of it was caught:** no fixture and no documented example ever
|
|
665
|
+
put the marker anywhere but a `form`, a `body` or a `multipart` part.
|
|
666
|
+
`chain_profile` uses `form`; the guide’s example uses `multipart`.
|
|
667
|
+
`ChainPayloadEncodingTestCase` and `ChainQueryStringSinkTestCase` put it
|
|
668
|
+
in every position a step can carry, and 10 of their 13 tests fail against
|
|
669
|
+
the old behaviour. The 3 that pass are the guards on the positions that
|
|
670
|
+
were already right.
|
|
671
|
+
|
|
512
672
|
## [3.19.0] — 2026-11-19
|
|
513
673
|
|
|
514
674
|
### Added
|
|
@@ -4730,6 +4890,8 @@ this file and have not been restated here.
|
|
|
4730
4890
|
|
|
4731
4891
|
|
|
4732
4892
|
[Unreleased]: https://github.com/kabiri-labs/rcekit/compare/v2.36.0...HEAD
|
|
4893
|
+
[3.20.0]: https://github.com/kabiri-labs/rcekit/compare/v3.19.1...v3.20.0
|
|
4894
|
+
[3.19.1]: https://github.com/kabiri-labs/rcekit/compare/v3.19.0...v3.19.1
|
|
4733
4895
|
[3.19.0]: https://github.com/kabiri-labs/rcekit/compare/v3.18.2...v3.19.0
|
|
4734
4896
|
[3.18.2]: https://github.com/kabiri-labs/rcekit/compare/v3.18.1...v3.18.2
|
|
4735
4897
|
[3.18.1]: https://github.com/kabiri-labs/rcekit/compare/v3.18.0...v3.18.1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rcekit
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.20.0
|
|
4
4
|
Summary: RCE detection & confirmation toolkit for authorised penetration testing
|
|
5
5
|
Author: Ahmad Kabiri
|
|
6
6
|
License-Expression: MIT
|
|
@@ -26,7 +26,7 @@ Dynamic: license-file
|
|
|
26
26
|
|
|
27
27
|
**`executed` means the target executed the input. `negative` means the probes reached it.**
|
|
28
28
|
|
|
29
|
-
**Version 3.
|
|
29
|
+
**Version 3.20.0** · MIT · Python 3.8+ · zero third-party dependencies
|
|
30
30
|
|
|
31
31
|
RCEKit is an **RCE detection & confirmation toolkit** for authorised penetration
|
|
32
32
|
testing, red teaming and security research. Point it at a target you are allowed
|
|
@@ -627,6 +627,22 @@ the run completed and the verdict is its result, so a wrapper that reads only
|
|
|
627
627
|
collapsed `verdict` that `--detect-json` carries, which exists for exactly
|
|
628
628
|
this.
|
|
629
629
|
|
|
630
|
+
**And check that the report is this run’s.** A run that refuses to start exits
|
|
631
|
+
non-zero *before* the report is written, so a job reusing one output path
|
|
632
|
+
reads whatever the previous run left — and that file is deliberately not
|
|
633
|
+
overwritten, because a placeholder there would destroy the evidence the
|
|
634
|
+
previous run produced. Every report carries a `run_id`, and RCEKit prints it
|
|
635
|
+
beside the path it wrote:
|
|
636
|
+
|
|
637
|
+
```
|
|
638
|
+
[detect] results written to findings.json (run 9f1c4e7a2b6d48f3a0c5e81b7d42f6ac)
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
Compare that against the `run_id` in the file you read. The comparison is an
|
|
642
|
+
equality rather than a timestamp window, which is what makes it survive a
|
|
643
|
+
container clock and a job in another timezone. `generated_at` is there too, as
|
|
644
|
+
a tz-aware UTC stamp that dates the evidence for whoever reads the file later.
|
|
645
|
+
|
|
630
646
|
A run that was only *partly* blinded gets the same treatment one level down. If
|
|
631
647
|
you asked for a second-order oracle and the observed endpoint never answered, the
|
|
632
648
|
probe verdicts still stand — but the run tells you they were decided without ever
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**`executed` means the target executed the input. `negative` means the probes reached it.**
|
|
6
6
|
|
|
7
|
-
**Version 3.
|
|
7
|
+
**Version 3.20.0** · MIT · Python 3.8+ · zero third-party dependencies
|
|
8
8
|
|
|
9
9
|
RCEKit is an **RCE detection & confirmation toolkit** for authorised penetration
|
|
10
10
|
testing, red teaming and security research. Point it at a target you are allowed
|
|
@@ -605,6 +605,22 @@ the run completed and the verdict is its result, so a wrapper that reads only
|
|
|
605
605
|
collapsed `verdict` that `--detect-json` carries, which exists for exactly
|
|
606
606
|
this.
|
|
607
607
|
|
|
608
|
+
**And check that the report is this run’s.** A run that refuses to start exits
|
|
609
|
+
non-zero *before* the report is written, so a job reusing one output path
|
|
610
|
+
reads whatever the previous run left — and that file is deliberately not
|
|
611
|
+
overwritten, because a placeholder there would destroy the evidence the
|
|
612
|
+
previous run produced. Every report carries a `run_id`, and RCEKit prints it
|
|
613
|
+
beside the path it wrote:
|
|
614
|
+
|
|
615
|
+
```
|
|
616
|
+
[detect] results written to findings.json (run 9f1c4e7a2b6d48f3a0c5e81b7d42f6ac)
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
Compare that against the `run_id` in the file you read. The comparison is an
|
|
620
|
+
equality rather than a timestamp window, which is what makes it survive a
|
|
621
|
+
container clock and a job in another timezone. `generated_at` is there too, as
|
|
622
|
+
a tz-aware UTC stamp that dates the evidence for whoever reads the file later.
|
|
623
|
+
|
|
608
624
|
A run that was only *partly* blinded gets the same treatment one level down. If
|
|
609
625
|
you asked for a second-order oracle and the observed endpoint never answered, the
|
|
610
626
|
probe verdicts still stand — but the run tells you they were decided without ever
|
|
@@ -950,10 +950,19 @@ Each step is a `method` + `path` (+ optional `headers`) with exactly one body of
|
|
|
950
950
|
|
|
951
951
|
| Marker | Meaning |
|
|
952
952
|
|---|---|
|
|
953
|
-
| `FUZZ` | where the payload goes — including inside uploaded file content |
|
|
953
|
+
| `FUZZ` | where the payload goes — a step's `path` (query string or path segment), a `headers` value, or the `body`, `json`, `form` or `multipart` body, including inside uploaded file content |
|
|
954
954
|
| `{var}` | a value captured by an earlier step's `extract` regex |
|
|
955
955
|
| `{token}` | a per-payload unique value, for correlating the trigger back to the delivery |
|
|
956
956
|
|
|
957
|
+
**Each position is encoded for what it is**, the same way a single request’s
|
|
958
|
+
is: percent-encoding for a query value, path-safe encoding for a path
|
|
959
|
+
segment, JSON string escaping inside a `json` body, CR/LF folded in a header
|
|
960
|
+
value. A `form` value and a raw `body` take the payload verbatim — `form` is
|
|
961
|
+
url-encoded on the way out, and a raw body is yours to shape. Until 3.19.1
|
|
962
|
+
the marker in a `path` was not substituted at all and nothing anywhere was
|
|
963
|
+
encoded, so a chain pointed at a query-string sink reported `negative` on a
|
|
964
|
+
target that was exploitable.
|
|
965
|
+
|
|
957
966
|
---
|
|
958
967
|
|
|
959
968
|
## Reading the results
|
|
@@ -73,7 +73,7 @@ starting point — this page is for looking things up once you know what you wan
|
|
|
73
73
|
| `--evade` | How far a REFUSED probe may climb: `none`, `low` (`${IFS}`), `high` (also `ec$@ho`) | `high` |
|
|
74
74
|
| `--probe-depth` | `full` (also the substitution-free and comment-terminated shapes) or `quick` | `full` |
|
|
75
75
|
| `--confirm-depth` | Once a carrier confirms: `first` (stop that carrier) or `every` (map every shape it accepts) | `first` |
|
|
76
|
-
| `--detect-json` | Also write the run to this path as JSON: overall verdict, counts, every probe | None |
|
|
76
|
+
| `--detect-json` | Also write the run to this path as JSON: run identity, overall verdict, counts, every probe | None |
|
|
77
77
|
| `--sink-shape` | Sink shapes the shell probes try: `auto`, or any of `sep`, `raw`, `chain`, `newline`, `dq`, `sq`, `subshell` | `auto` |
|
|
78
78
|
| `--sink-env` | Shell that runs the injected command: `auto`, `unix`, `windows`, `powershell` | `auto` |
|
|
79
79
|
| `--eval-engines` | (`eval`) Engine carriers to add to the bare expression probes: `auto`, or names from `eval_carriers` | `auto` |
|
|
@@ -1367,7 +1367,9 @@ not say which OS it runs on.
|
|
|
1367
1367
|
|
|
1368
1368
|
```json
|
|
1369
1369
|
{
|
|
1370
|
-
"rcekit_version": "
|
|
1370
|
+
"rcekit_version": "3.20.0",
|
|
1371
|
+
"run_id": "9f1c4e7a2b6d48f3a0c5e81b7d42f6ac",
|
|
1372
|
+
"generated_at": "2026-12-04T09:41:16.284913+00:00",
|
|
1371
1373
|
"target": "https://target.example/lookup?host=FUZZ",
|
|
1372
1374
|
"methods": ["reflected"],
|
|
1373
1375
|
"verdict": "executed",
|
|
@@ -1411,6 +1413,40 @@ that confirm from a second request or from the listener do not pay it: their
|
|
|
1411
1413
|
verdict does not rest on this response, and for `write` the delivery itself
|
|
1412
1414
|
stores what it is sent.
|
|
1413
1415
|
|
|
1416
|
+
#### Which run wrote this file
|
|
1417
|
+
|
|
1418
|
+
`run_id` and `generated_at` answer that, and a caller reusing one output path
|
|
1419
|
+
across runs needs them. A run that **refuses to start** — an unknown
|
|
1420
|
+
`--methods` name, an unreadable `-r` file, a missing `FUZZ` marker — exits
|
|
1421
|
+
non-zero *before* the writer is reached, so the report the previous run left
|
|
1422
|
+
stays on disk. Nothing is overwritten there on purpose: a placeholder report
|
|
1423
|
+
would destroy the evidence that run produced.
|
|
1424
|
+
|
|
1425
|
+
So the contract is two-part, and both halves are needed:
|
|
1426
|
+
|
|
1427
|
+
- **Did this run start?** The exit status. Non-zero means RCEKit refused to
|
|
1428
|
+
carry the run out and wrote no report, so whatever is at `PATH` is older.
|
|
1429
|
+
- **Did this file come from it?** `run_id`. RCEKit prints it on the line that
|
|
1430
|
+
names the path — `[detect] results written to findings.json (run 9f1c4e7a…)`
|
|
1431
|
+
— so the comparison is an **equality**, not a time window. That matters more
|
|
1432
|
+
than it looks: a report written to a mounted volume by a container whose
|
|
1433
|
+
clock drifted, or read by a job in another timezone, defeats a window and
|
|
1434
|
+
not an equality.
|
|
1435
|
+
|
|
1436
|
+
On a retry, treat each attempt as its own run: capture the id the attempt
|
|
1437
|
+
announced and compare it against the file you then read. `generated_at` is a
|
|
1438
|
+
tz-aware UTC ISO-8601 stamp and is the field that dates the evidence for a
|
|
1439
|
+
human reading the file later; it is not the field to branch on.
|
|
1440
|
+
|
|
1441
|
+
The file is replaced atomically where the directory allows creating a sibling,
|
|
1442
|
+
so a reader never sees half a document. Where it does not -- a directory that
|
|
1443
|
+
grants write on the report and not on itself, which is how the benchmark
|
|
1444
|
+
harness hands a container its output file -- the write falls back to writing
|
|
1445
|
+
the report in place, which is what RCEKit did before 3.20.0. The document is
|
|
1446
|
+
serialised before either path opens anything, so a report that cannot be
|
|
1447
|
+
encoded never truncates the one already there. A restrictive mode on an
|
|
1448
|
+
existing report is carried onto its replacement.
|
|
1449
|
+
|
|
1414
1450
|
This is the channel [`tests/bench/`](../tests/bench/README.md) reads to check
|
|
1415
1451
|
verdicts against real vulnerable targets.
|
|
1416
1452
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rcekit
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.20.0
|
|
4
4
|
Summary: RCE detection & confirmation toolkit for authorised penetration testing
|
|
5
5
|
Author: Ahmad Kabiri
|
|
6
6
|
License-Expression: MIT
|
|
@@ -26,7 +26,7 @@ Dynamic: license-file
|
|
|
26
26
|
|
|
27
27
|
**`executed` means the target executed the input. `negative` means the probes reached it.**
|
|
28
28
|
|
|
29
|
-
**Version 3.
|
|
29
|
+
**Version 3.20.0** · MIT · Python 3.8+ · zero third-party dependencies
|
|
30
30
|
|
|
31
31
|
RCEKit is an **RCE detection & confirmation toolkit** for authorised penetration
|
|
32
32
|
testing, red teaming and security research. Point it at a target you are allowed
|
|
@@ -627,6 +627,22 @@ the run completed and the verdict is its result, so a wrapper that reads only
|
|
|
627
627
|
collapsed `verdict` that `--detect-json` carries, which exists for exactly
|
|
628
628
|
this.
|
|
629
629
|
|
|
630
|
+
**And check that the report is this run’s.** A run that refuses to start exits
|
|
631
|
+
non-zero *before* the report is written, so a job reusing one output path
|
|
632
|
+
reads whatever the previous run left — and that file is deliberately not
|
|
633
|
+
overwritten, because a placeholder there would destroy the evidence the
|
|
634
|
+
previous run produced. Every report carries a `run_id`, and RCEKit prints it
|
|
635
|
+
beside the path it wrote:
|
|
636
|
+
|
|
637
|
+
```
|
|
638
|
+
[detect] results written to findings.json (run 9f1c4e7a2b6d48f3a0c5e81b7d42f6ac)
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
Compare that against the `run_id` in the file you read. The comparison is an
|
|
642
|
+
equality rather than a timestamp window, which is what makes it survive a
|
|
643
|
+
container clock and a job in another timezone. `generated_at` is there too, as
|
|
644
|
+
a tz-aware UTC stamp that dates the evidence for whoever reads the file later.
|
|
645
|
+
|
|
630
646
|
A run that was only *partly* blinded gets the same treatment one level down. If
|
|
631
647
|
you asked for a second-order oracle and the observed endpoint never answered, the
|
|
632
648
|
probe verdicts still stand — but the run tells you they were decided without ever
|