Skip to content

feat: implement automated security audit script for Wasm files (#274)#280

Open
Danielodingz wants to merge 2 commits into
ceejaylaboratory:mainfrom
Danielodingz:feature/issue-274-security-audit
Open

feat: implement automated security audit script for Wasm files (#274)#280
Danielodingz wants to merge 2 commits into
ceejaylaboratory:mainfrom
Danielodingz:feature/issue-274-security-audit

Conversation

@Danielodingz
Copy link
Copy Markdown
Contributor

Closes #274

Feat: Implement automated security audit script for Wasm files

Description

This PR resolves issue #274 by introducing an automated security audit script that scans Soroban Wasm files for known vulnerabilities and suspicious patterns using soroban-analyzer during every CI build.

Changes Made

  • Added scripts/security_audit.sh: A robust, ShellCheck-compliant bash script that:
    • Discovers all built .wasm files within the project.
    • Automatically invokes soroban-analyzer on the discovered Wasm targets for deep static analysis.
    • Scans for risky source code patterns like unsafe { blocks and env.panic usages.
  • Updated .github/workflows/rust.yml: Integrated the script into the rust CI pipeline as the Run Security Audit step, ensuring it runs reliably during CI while strictly adhering to merge-safe constraints.

Validation

  • The bash script is strictly compliant with shellcheck standards (handles empty arrays, buffers output safely using while read -r).
  • The script automatically skips gracefully with an exit code of 0 if Wasm files haven't been built yet (to avoid breaking CI pipelines unnecessarily).
  • No new external project dependencies, configs, or testing frameworks were added to keep the footprint completely localized.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@Danielodingz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Danielodingz
Copy link
Copy Markdown
Contributor Author

Hey @Ceejaytech25 please check PR and merge, Thanks

@Danielodingz
Copy link
Copy Markdown
Contributor Author

Hey @Ceejaytech25 please check PR and merge, Thanks you

1 similar comment
@Danielodingz
Copy link
Copy Markdown
Contributor Author

Hey @Ceejaytech25 please check PR and merge, Thanks you

@Danielodingz
Copy link
Copy Markdown
Contributor Author

Hey @Ceejaytech25 please merge this PR

@Danielodingz
Copy link
Copy Markdown
Contributor Author

@Ceejaytech25 please merge now

@Danielodingz
Copy link
Copy Markdown
Contributor Author

@Ceejaytech25 please merge

@Ceejaytech25
Copy link
Copy Markdown
Contributor

Nice implementation, lgtm!

@Ceejaytech25
Copy link
Copy Markdown
Contributor

@Danielodingz , pls resolve conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contract: Implement automated security audit script

2 participants