[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fMRi2eIf-HRBT210JYPHC7tdpkMg05MDpgzhlVvFiXDM":3},{"article":4,"iocs":49,"iocs_total":54,"watch_terms":55,"solutions":56,"lesson":146},{"id":5,"title":6,"slug":7,"summary":8,"ai_summary":9,"brief":10,"url":11,"image_url":12,"published_at":13,"ingested_at":14,"relevance_score":15,"entities":16,"category_id":31,"category":32,"article_tags":36},"f4ac413b-abed-4e50-917c-d0a684aeeadc","Introducing Function-Level Reachability for Rust","introducing-function-level-reachability-for-rust-a1e8f1","Today, we're announcing function-level reachability analysis for Rust, powered by a new whole-program analysis engine engineered around the complexities of the Rust language. Socket can now trace execution paths from application code through transitive dependencies, compiler-generated code, and the Rust standard library, down to individual vulnerable functions. Security teams can pinpoint which vulnerabilities are reachable in their applications, with call paths that show developers exactly how execution can reach the vulnerable code. Socket's analysis is build-aware, accounting for the project's selected Rust toolchain, enabled Cargo features, and target platform. It executes build scripts, expands procedural macros, and follows execution through traits, closures, asynchronous tasks, and even across foreign code boundaries. In validation against real executions of Rust test suites, Socket identified 99.6% of observed functions and 99.6% of observed function calls. We've also extensively tested the engine across some of the Rust ecosystem's most prominent open source projects, including Cargo, ripgrep, Helix, Nushell, Alacritty, Typst, and Zellij. The new analysis is already available to Socket customers using full application reachability for Rust, with no configuration changes required. # Consider CVE-2026-25727, a stack exhaustion vulnerability in the popular time crate that can cause a denial of service when parsing RFC 2822 dates. To demonstrate the precision of Socket's analysis, we built a small web service using axum that accepts JSON events containing timestamps: #[derive(Deserialize)] struct Event { name: String, #[serde(with = \"time::serde::rfc2822\")] \u002F\u002F twin: time::serde::rfc3339 sent_at: OffsetDateTime, } async fn ingest(Json(event): Json ) -> String { format!(\"{} at {}\", event.name, event.sent_at.unix_timestamp()) } #[tokio::main] async fn main() { let app = Router::new().route(\"\u002Fevents\", post(ingest)); let listener = tokio::net::TcpListener::bind(\"127.0.0.1:3000\").await.unwrap(); axum::serve(listener, app).await.unwrap(); } The application never explicitly calls a parsing function in time. The vulnerable parser is reached through code generated by #[derive(Deserialize)], which deserializes the incoming JSON and parses the timestamp. Socket identifies the vulnerability as reachable and surfaces the call path in the dashboard, tracing execution through generated deserialization code, serde_json, serde_path_to_error, and the Rust standard library into the vulnerable RFC 2822 parser. Now change the timestamp format to RFC 3339: #[serde(with = \"time::serde::rfc3339\")] Socket determines that the vulnerability is not reachable in this version of the application. Both applications: Depend on the exact same vulnerable crate version. Invoke the same public parsing API. Differ by a single line of code. Have entirely different vulnerability reachability results. Both eventually call OffsetDateTime::parse, but only the first application reaches the RFC 2822 parser containing the vulnerable code. # Socket constructs a whole-program call graph spanning application code, every dependency, and the Rust standard library. While many SCA tools limit Rust analysis to dependency graphs or first-party source code, Socket follows execution across crate boundaries and analyzes the code that the project's enabled Cargo features and target platform actually compile. The shipped application, its tests, and its build scripts are analyzed as separate programs. Our analysis follows the mechanisms Rust uses to determine which code executes, including: Trait dispatch: Resolving which implementations can actually be invoked based on the types flowing through the program. Closures and trait objects: Following callbacks passed into libraries and invoked elsewhere in the dependency graph. Implicit function calls: Tracking calls introduced by operators, ?, for loops, formatting, and automatic cleanup through Drop. Asynchronous execution and threads: Connecting call paths across task schedulers, including work handed off through tokio::spawn. Standard library callbacks: Following execution through standard library implementations that call back into application or dependency code. # Rust's procedural macros can generate entire functions, introducing calls into dependencies that never appear in the original source. Socket runs build scripts and expands procedural macros to capture these execution paths. To quantify the importance of generated code for reachability analysis, we analyzed popular open source Rust applications twice, with and without build scripts and procedural macro expansion, and compared the dependency functions identified as reachable. Using a more permissive analysis that tolerated type errors, we obtained comparable results for 43 applications. Omitting generated code caused the analysis to miss a median of 21% of reachable dependency functions. Nineteen applications lost at least a quarter of their reachable dependency functions, and four had no reachable dependency functions identified at all. We observed several examples of this across open source Rust projects: zoxide: The program depends on Cmd::parse(), a function that exists only in code generated by a derive macro. mini-redis: The #[tokio::main] attribute generates the runtime initialization and entry point needed to execute the asynchronous application. hyperfine: Its JSON export functionality passes through code generated by #[derive(Serialize)] into serde_json, creating a call path that is invisible without macro expansion. # One of our primary engineering goals was to deliver precise Rust reachability analysis without requiring customers to change their Rust toolchains. Many academic Rust static analysis tools, including Rupta and Rudra, build on the compiler's internal APIs, which typically tie the analysis to a specific nightly compiler release. Socket needs to analyze customer projects across a wide range of Rust releases and build configurations. We initially explored a compiler-based approach before moving to rust-analyzer. Adapting its architecture from interactive editor tooling to whole-program security analysis required substantial engineering work. We built our own lowering of its source-level representation, developed standard library models checked against Rust releases from 1.74 through 1.100, and made more than 30 fixes to type inference, trait solving, and macro handling. Some of the engineering challenges we addressed include: Compiler-accurate method resolution: The popular itertools crate and Rust's standard library both provide an intersperse method, but the standard library implementation is experimental and requires nightly Rust. We reimplemented the compiler's method selection rules so the call graph follows the implementation that actually executes. Version-specific standard library analysis: We adapted rust-analyzer to load the standard library as each supported Rust release builds it, including the code underlying HashMap in releases before Rust 1.82. Standard library implementations such as HashMap can call back into application code, making them essential to constructing complete call paths. We also accounted for differences in macro and formatting implementations across Rust releases. Per-crate trait resolution: Different crates can see different trait implementations. We changed how rust-analyzer caches trait resolution results, scoping them per crate in accordance with the compiler's behavior so results are independent of analysis order. Memory modeling for unsafe Rust: The analysis uses a memory model based on MiniRust to track memory flows through raw pointers and unsafe code in dependencies and the standard library. Execution across foreign code boundaries: Our analysis connects callbacks passed to C code and asynchronous wake-ups driven by operating system event queues such as epoll and kevent, preserving call paths across native libraries and asynchronous runtimes. # We validated our Rust reachability engine by running the test suites of published crates, including regex, clap, serde_json, rayon, and futures, recording every function call and comparing the observed execution paths against our static analysis results. Socket identified: 99.6% of the 39,591 functions executed during testing. 99.6% of the 79,163 observed calls between functions. These results measure the analyzer's recall against actual runtime behavior, quantifying its ability to identify functions and call relationships that we know occurred during execution. We also thoroughly tested the engine across major open source Rust applications built from source, including Cargo, ripgrep, Helix, Nushell, Alacritty, Typst, and Zellij, exercising a broad range of language features, dependency structures, and build configurations. Function-Level Reachability for Rust Is Available Now # Socket's new function-level analysis is automatically available to customers already using full application reachability for Rust, with no configuration changes required. The analysis supports Rust 1.74 and newer, runs with your project's existing toolchain, and automatically installs the rust-src component if needed. It requires a buildable project but no prior compilation, special compiler plugin, or custom toolchain. Additional Cargo build flags can be passed through SOCKET_REACH_CARGO_BUILD_OPTS. Get started with Socket's Rust and Cargo reachability documentation.","Socket has launched a new build-aware, function-level reachability analysis engine for Rust. This tool traces execution paths from application code through dependencies and compiler-generated code to pinpoint vulnerable functions. It accounts for Rust toolchains, Cargo features, and target platforms, offering precise vulnerability identification by analyzing actual code execution.","Socket introduces function-level reachability analysis for Rust.","https:\u002F\u002Fsocket.dev\u002Fblog\u002Frust-function-level-reachability?utm_medium=feed","https:\u002F\u002Fcdn.sanity.io\u002Fimages\u002Fcgdhsj6q\u002Fproduction\u002F1972443217d9a103c0d4a0804296f7b80dd74bfd-1494x972.png?w=1000&q=95&fit=max&auto=format","2026-11-30T14:19:45.946+00:00","2026-11-30T15:00:31.430161+00:00",7,[17,20,23,25,27,29],{"name":18,"type":19},"Socket","product",{"name":21,"type":22},"Rust","technology",{"name":24,"type":19},"Cargo",{"name":26,"type":19},"ripgrep",{"name":28,"type":19},"Helix",{"name":30,"type":19},"Nushell","02371804-cf6d-4449-98de-f1a2d4d9b266",{"id":31,"icon":33,"name":34,"slug":35},null,"Tools","tools",[37,39,44],{"category":38},{"id":31,"icon":33,"name":34,"slug":35},{"category":40},{"id":41,"icon":33,"name":42,"slug":43},"80544778-fabb-4dcd-aa35-17492e5dcf4f","Vulnerabilities","vulnerabilities",{"category":45},{"id":46,"icon":33,"name":47,"slug":48},"ade75414-7914-4e23-a450-48b64546ee70","Open Source","open-source",[50],{"type":51,"value":52,"context":53},"cve","CVE-2026-25727","a stack exhaustion vulnerability in the popular time crate",1,[18,24,26],{"controls":57,"vendors":142},[58,87,116],{"slug":59,"name":60,"problem":61,"products":62},"vulnerability-management","Vulnerability scanning and prioritisation","You know which systems are vulnerable, and which ones to fix first.",[63,71,79],{"vendor_slug":64,"vendor_name":65,"vendor_logo":66,"product_slug":67,"product_name":68,"url":69,"description":70},"qualys","Qualys","\u002Fvendor-logos\u002Fqualys.png","vmdr","Qualys VMDR","https:\u002F\u002Fwww.qualys.com\u002Fapps\u002Fvulnerability-management-detection-response\u002F","Vulnerability management, detection and response with risk-based prioritisation.",{"vendor_slug":72,"vendor_name":73,"vendor_logo":74,"product_slug":75,"product_name":76,"url":77,"description":78},"rapid7","Rapid7","\u002Fvendor-logos\u002Frapid7.png","insightvm","Rapid7 Exposure Command (InsightVM)","https:\u002F\u002Fwww.rapid7.com\u002Fproducts\u002Finsightvm\u002F","Vulnerability scanning and risk-based prioritisation; InsightVM is now part of Exposure Command, alongside attack surface and cloud risk.",{"vendor_slug":80,"vendor_name":81,"vendor_logo":82,"product_slug":83,"product_name":84,"url":85,"description":86},"axonius","Axonius","\u002Fvendor-logos\u002Faxonius.png","axonius-exposures","Axonius Exposures","https:\u002F\u002Fwww.axonius.com\u002Fplatform\u002Fexposures","Brings findings from different scanners together with asset and business context, to show what matters most and track fixes to the end.",{"slug":88,"name":89,"problem":90,"products":91},"threat-intelligence","Threat intelligence","Attack campaigns reach your sector, suppliers or software before your team hears about them.",[92,100,108],{"vendor_slug":93,"vendor_name":94,"vendor_logo":95,"product_slug":96,"product_name":97,"url":98,"description":99},"reliaquest","ReliaQuest","\u002Fvendor-logos\u002Freliaquest.png","greymatter-digital-risk-protection","GreyMatter Digital Risk Protection","https:\u002F\u002Freliaquest.com\u002Fsecurity-operations-platform\u002Fdark-web-and-digital-risk-protection\u002F","Watches the open, deep and dark web for threats aimed at an organisation and alerts its security team in real time.",{"vendor_slug":101,"vendor_name":102,"vendor_logo":103,"product_slug":104,"product_name":105,"url":106,"description":107},"dataminr","Dataminr","\u002Fvendor-logos\u002Fdataminr.png","dataminr-threat-intelligence","Dataminr Threat Intelligence","https:\u002F\u002Fwww.dataminr.com\u002Fproducts\u002Fcyber-defense\u002Fthreat-intelligence\u002F","Real-time alerts on emerging cyber threats, exploited vulnerabilities and attacks relevant to your organisation, detected with AI across a large set of public data sources.",{"vendor_slug":109,"vendor_name":110,"vendor_logo":111,"product_slug":112,"product_name":113,"url":114,"description":115},"defused","Defused","\u002Fvendor-logos\u002Fdefused.png","defused-tf","Defused TF","https:\u002F\u002Fdefusedcyber.com\u002Fproduct\u002Ftf","Threat intelligence feed from honeypots Defused runs on several continents, showing which vulnerabilities attackers are exploiting right now, with payloads and indicators.",{"slug":117,"name":118,"problem":119,"products":120},"software-supply-chain","Software supply chain security","Malicious and vulnerable open-source packages are caught before they ship.",[121,129,134],{"vendor_slug":122,"vendor_name":123,"vendor_logo":124,"product_slug":125,"product_name":126,"url":127,"description":128},"sonatype","Sonatype","\u002Fvendor-logos\u002Fsonatype.png","sonatype-firewall","Sonatype Firewall","https:\u002F\u002Fwww.sonatype.com\u002Fproducts\u002Fsonatype-firewall","Blocks malicious and policy-violating open-source components at download.",{"vendor_slug":130,"vendor_name":18,"vendor_logo":131,"product_slug":130,"product_name":18,"url":132,"description":133},"socket","\u002Fvendor-logos\u002Fsocket.png","https:\u002F\u002Fsocket.dev\u002F","Detects and blocks malicious and risky packages in npm, PyPI and other ecosystems.",{"vendor_slug":135,"vendor_name":136,"vendor_logo":137,"product_slug":138,"product_name":139,"url":140,"description":141},"jfrog","JFrog","\u002Fvendor-logos\u002Fjfrog.png","jfrog-curation","JFrog Curation","https:\u002F\u002Fjfrog.com\u002Fcuration\u002F","Blocks malicious and risky open-source packages before they enter your repositories.",[143],{"slug":130,"name":18,"logo_path":131,"roles":144},[145],"reported_by",{"slug":147,"title":148,"body":149,"framework_refs":150,"framework_notes":156},"function-level-reachability-analysis-closes-the-gap-between-known-vulnerabilities-and-actual-risk-in","Function-Level Reachability Analysis Closes the Gap Between Known Vulnerabilities and Actual Risk in Rust Dependencies","Traditional vulnerability scanners flag every CVE found in a dependency, even when the vulnerable function is never actually called by the application, leading to alert fatigue and wasted remediation effort. Socket's new reachability engine for Rust addresses this by tracing real execution paths through application code, transitive dependencies, and compiler-generated code, identifying only the vulnerabilities that are genuinely reachable at runtime. This matters because Rust projects rely heavily on Cargo's ecosystem of crates, and a single transitive dependency can introduce dozens of reported vulnerabilities that may carry no real risk. Without reachability awareness, security teams either over-remediate — breaking builds unnecessarily — or dismiss alerts wholesale, potentially missing exploitable issues. Precise, context-aware vulnerability analysis is essential for maintaining secure software supply chains without sacrificing developer productivity.",[151,152,153,154,155],"CIS Control 16: Application Software Security (v8)","NIST SP 800-53 RA-5: Vulnerability Monitoring and Scanning","NIST CSF 2.0 ID.RA-1: Asset Vulnerabilities Are Identified and Communicated","NIS2 Article 21(2)(e)","OWASP A06:2021 Vulnerable and Outdated Components",{"NIS2 Article 21(2)(e)":157,"OWASP A06:2021 Vulnerable and Outdated Components":158,"CIS Control 16: Application Software Security (v8)":159,"NIST SP 800-53 RA-5: Vulnerability Monitoring and Scanning":160,"NIST CSF 2.0 ID.RA-1: Asset Vulnerabilities Are Identified and Communicated":161},"NIS2 Article 21(2)(e) mandates security in acquisition, development, and maintenance including vulnerability handling, making function-level reachability analysis directly relevant as a mechanism for precise vulnerability disclosure and remediation in software supply chains.","OWASP A06 addresses the risk of using components with known vulnerabilities, and reachability analysis directly refines this risk category by determining whether a vulnerable component function is actually invoked in the application.","CIS Control 16 requires organisations to manage the security of software they develop or acquire, including analysing third-party components for vulnerabilities — exactly what function-level reachability analysis provides for Rust dependencies.","RA-5 calls for scanning for vulnerabilities in information systems and correlating findings with risk, which reachability analysis fulfils by distinguishing genuinely exploitable vulnerabilities from theoretically present but unreachable ones.","This category requires that vulnerabilities in organisational assets — including software dependencies — are identified accurately, which reachability-aware analysis improves by ensuring only exploitable code paths are surfaced."]