-
Notifications
You must be signed in to change notification settings - Fork 80
feat(fuzzer): add valid-address generator for G, M, and C kinds #301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Emrys02
merged 13 commits into
Boxkit-Labs:main
from
Legit003:feat/rust-fuzzer-valid-address-generator
Aug 14, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
54dc0af
feat(fuzzer): add bounded fuzzing and CI action for prism-core
Peaostrel 299c9af
feat(prism-core): add differential testing against stellar-strkey, fi…
scarface-dev1 d35f610
feat(rust-fuzzer): implement truncate and pad length mutators
Yinklekay bf74f36
feat(fuzzer): add valid-address generator for G, M, and C kinds
Legit003 46d3b87
Merge pull request #298 from Peaostrel/fix/issue-296-fuzzer-ci
codeZe-us 1bf9b64
Merge pull request #299 from scarface-dev1/feat/prism-diff-differenti…
codeZe-us 41a661d
Merge branch 'main' into feat/length-mutators-291
Yinklekay a02e750
Merge pull request #300 from Yinklekay/feat/length-mutators-291
codeZe-us 658958d
test: add non-base32 and null-byte rejection vectors for address deco…
DrSa7ag3 b051f55
Merge pull request #305 from DrSa7ag3/fix/reject-case-and-non-base32-…
codeZe-us f4cbe17
fix: fixes
Emrys02 6c80a02
feat(fuzzer): add valid-address generator for G, M, and C kinds
Legit003 4b99c26
Merge branch 'feat/rust-fuzzer-valid-address-generator' of https://gi…
Emrys02 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: ci-rust | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "examples/prism-core/**" | ||
| - "examples/rust-address-fuzzer/**" | ||
| - "spec/vectors.json" | ||
| - ".github/workflows/ci-rust.yml" | ||
|
|
||
| concurrency: | ||
| group: ci-rust-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Rust tests & build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| cache: false | ||
|
|
||
| - name: Test prism-core (lib) | ||
| run: cargo test -p prism-core | ||
|
|
||
| - name: Test rust-address-fuzzer | ||
| run: cargo test -p rust-address-fuzzer | ||
|
|
||
| - name: Build prism-diff binary | ||
| run: cargo build -p prism-core --features diff --bin prism-diff | ||
|
|
||
| - name: Run prism-diff smoke test (1k random inputs) | ||
| run: cargo run -p prism-core --features diff --bin prism-diff -- --random 1000 --seed 42 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Fuzz | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| fuzz: | ||
| name: Run rust-address-fuzzer | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Run Fuzzer | ||
| run: | | ||
| cd examples/rust-address-fuzzer | ||
| cargo run --release -- --random 100000 --max-iterations 100000 | ||
|
|
||
| - name: Upload Reproducer | ||
| if: failure() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: fuzzer-reproducer | ||
| path: examples/rust-address-fuzzer/reproducer.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
Disable persisted checkout credentials in both workflows. Both workflows execute pull request-controlled Rust code after checkout. Prevent that code from accessing the job token through local Git configuration.
.github/workflows/ci-rust.yml#L26-L26: addpersist-credentials: falsetoactions/checkout@v4..github/workflows/fuzz.yml#L13-L13: addpersist-credentials: falsetoactions/checkout@v4.🧰 Tools
🪛 zizmor (1.29.0)
[warning] 26-26: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
📍 Affects 2 files
.github/workflows/ci-rust.yml#L26-L26(this comment).github/workflows/fuzz.yml#L13-L13🤖 Prompt for AI Agents
Source: Linters/SAST tools