C#
C# security review
C# is the language behind a lot of .NET exchange services, custody APIs, and Unity clients. Hackerbane audits the C# that holds keys, authorizes a call, or deserializes a request.
scope
What we review
We review the services and clients that hold keys or send transactions. Typical issues are an endpoint with no [Authorize], a JSON payload that constructs a type with a setter that runs code, and a file path built from a request.
Controllers and gRPC methods that change a role or send funds with no authorization attribute.
Deserializers that construct types with setters or callbacks the caller can reach.
Path.Combine on a name from the request, then a read or a write under the data directory.
Unity or desktop clients that store a key next to the install and send it on any RPC reply.
Entity queries that take a string from the caller instead of a parameter.
Advanced Threat Detection
We built our own advanced threat detection stack that is more performant and cheaper than our competitors. We use a state-of-the-art AI harness coupled with world-class senior security engineers with proven experience finding vulnerabilities in well-tested software.
How we review this language
A C# review follows the same five-stage engagement as every Hackerbane audit. We start from the request the service accepts and the keys it can reach.
Two senior engineers read the code in parallel. We follow a call through authorization and into the signer, and we try a payload that should never construct.
Scope and threat model
We lock the repo, the commit, and the endpoints or clients that can reach a key, including uploads and admin methods, before the review starts.
Architecture and design review
We trace every path from a request to a signed payload or a file read, and check who is allowed to call it.
Hybrid code and infrastructure review
Two senior engineers read the C# in parallel, with the SDK you ship and tests that drive admin and loader paths with hostile input.
Exploitability and root-cause analysis
High and Critical findings ship with a runnable proof and the root cause, so the class of bug is closed, not one instance.
Reporting and remediation
A prioritized report, a live walkthrough, and verification of every in-scope fix within the remediation window.
Tools and practices
We work in the repository you already use. The .NET SDK stays in place. We add tests and proofs, then hand those back with the report.
What you get
Findings ordered by severity, each naming the function, the root cause, and a fix.
Runnable proofs of concept for High and Critical issues.
The written report names the commit, each finding, and the retest result.
Remediation verification and a final report that reflects the fixed state of the system.
The authorization and loader tests used during the review.
How to prepare
| # | Before review starts |
|---|---|
| 01 | The project builds and tests run cleanly from a fresh checkout. |
| 02 | The codebase is stable, with no major refactors planned mid-audit. |
| 03 | How the service is hosted and what it can sign or send are documented. |
| 04 | Where keys, configs, and uploaded files come from is written down. |
| 05 | Scope is defined: which service or client, which commit, and which deployment. |
Other pages
Questions
- Do you review ASP.NET and Unity in the same engagement?
- Yes, when they share a key or a signer. We scope the service and the client so a finding on one side is not treated as out of scope on the other.
- What about older .NET Framework services?
- We review them. Binary formatters and some serializers on Framework are still a common finding. We build against the runtime you ship.
- Can you review the contracts the service calls?
- Yes. When the C# signs or sends a transaction we can review both, so the service and the contract it calls are covered together.
Next step
Request an audit
Share the repo, what the service or client can sign or send, and your timeline. We reply with a written scope and a fixed quote.