Sashiko 0.9.6 Adds Experimental AI Code Review for LLVM and Binutils-GDB: 0.9.7 Fixes Server Vulnerabilities
The article's text, from Joho no Todai's page.
The Sashiko development team released 0.9.6 on December 2. The AI code review system primarily targets the Linux kernel. Version 0.9.5 had added a dedicated review stage for performance regressions.
Version 0.9.6 adds specialized reviews for development tools. It examines changes to LLVM and Clang and to GNU Binutils and GDB using project-specific instructions.
LLVM provides compiler infrastructure for code generation and optimization across CPU architectures. Clang uses LLVM to compile languages such as C and C++. GNU Binutils includes assemblers and linkers, and GDB is a debugger for inspecting the state of running programs.
A compiler can finish successfully and still generate incorrect machine code that breaks a program that should work. What if the debugger also shows the wrong values when the developer investigates? Defects in development tools can affect both the software built with them and the ability to diagnose its problems.
Sashiko 0.9.6: Experimental support for development tools
| Target and role | Main checks |
|---|---|
| Reviews run locally | |
| LLVM・Clang Code generation and optimization | Miscompilation of valid code Crash on valid input |
| GNU Binutils Machine code generation and linking | Incorrect binary output (Without a diagnostic) |
| GDB Runtime inspection | Incorrect state or variable values |
Review criteria vary by tool
The LLVM instructions ask reviewers to look for compilers changing the behavior of a standards-compliant program or crashing on valid input. For GNU Binutils, reviewers look for failures such as silently producing incorrect binaries. For GDB, they look for failures such as incorrectly displaying a program’s runtime state or variable values.
What is interesting is that the review criteria change with the project. GDB can be wrong even when the program being debugged works correctly. LLVM and GDB require different checks.
Both sets of review instructions ask for concrete evidence when reporting a bug, including the relevant inputs and settings and the expected and observed results. They also load review guidance written by maintainers of the affected area based on the files or symbols changed.
The 0.9.6 design documents say to consult the source being changed when evaluating code or behavior the project needs to preserve. LLVM and Binutils-GDB do not yet have the specialized supporting material that Sashiko builds automatically from source elsewhere.
The 0.9.6 documentation lists LLVM and Binutils-GDB as experimental local review targets. In the relevant Git repository, use sashiko review --project llvm for LLVM and sashiko review --project binutils-gdb for GNU Binutils and GDB.
The release adds more ways to connect to AI models. It can get responses through Google Antigravity CLI, and users can enable Server-Sent Events (SSE) for streamed responses from the OpenAI API and Anthropic’s Claude. It also improves retries and error logging when an API rate limit is reached during streaming.
Google supports the computing resources and model usage costs for the public service. When running a local review with an external model, Sashiko sends patches, relevant files, and change history to the configured provider. The developers say users should verify the cost and whether they have permission to share the code externally.
Security fixes for authentication and public reviews
The team released 0.9.7 on December 3, fixing several security issues in the server.
The December 4 security advisory, identified as GHSA-rq5h-jhwc-6v49, rates the issues High severity. They affect version 0.9.6 and earlier. Version 0.9.7 contains the fix.
Sashiko 0.9.7: Server vulnerabilities fixed
| Issues and risks through 0.9.6 | Fixes in 0.9.7 |
|---|---|
| GHSA-rq5h-jhwc-6v49 (High severity) | |
| Private issue details In public output and logs | Exclude private information Restrict sensitive logs |
| Authentication tokens Exposure and reuse risk | Dedicated sign-in page Prevent token reuse |
| Sign-in rate-limiting flaws Legitimate users could be locked out Unbounded memory growth | Improve rate limiting Cap rate-limit data |
| Insufficient destination validation Unintended requests (SSRF) | Validate destinations and protocols |
| Missing identifier validation on redirects Missing HTTP headers | Validate identifiers Add security headers |
Public review output and logs could retain details from security issues that were meant to stay private. According to the advisory, people without authentication could potentially read them.
Sign-in tokens could be exposed or reused. The advisory also describes inadequate rate limiting for sign-in requests, which could lock out legitimate users or cause unbounded memory growth.
Insufficient destination validation when fetching external Git repositories could lead to server-side request forgery (SSRF), in which the server contacts an unintended destination. Validation on issue redirects and some basic HTTP security headers were also missing.
The fixes remove private issue details from review output and restrict sensitive logs to users who can access the full issue information. A dedicated sign-in page no longer loads third-party scripts, and the server records hashes of used authentication tokens to prevent reuse.
The December 4 advisory does not list a CVE, documented exploitation, or the number of users affected. Administrators running Sashiko servers should update to the fixed version, 0.9.7.
What to publish and what to protect
Version 0.9.6 also gives users assigned to an issue the permissions they need to sign in, view the issue, and triage it. Git synchronization now reloads MAINTAINERS and updates tracked issues when a maintainer area is renamed.
In a Japanese-language post dated November 26, Google described how the public Linux kernel service works. It publishes the AI’s instructions and investigation steps, including potential bugs the review ultimately dismissed. The Sashiko project also uses AI to review its own changes.
When developers disagree with a finding, being able to trace the evidence behind it is valuable. For security bugs, carefully controlling which information becomes public is also part of review quality.
Version 0.9.7 expands the security instructions Sashiko uses to review itself, revisiting checks for the web interface, authentication, and Git connections.
Sashiko is distributed under the Apache License 2.0. Its name comes from a Japanese stitching technique used to reinforce worn areas of cloth. A project dedicated to strengthening important open-source software has now repaired its own code.
