Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Engineering@Microsoft 3 min read Opinion easyNovice

Separating the signal from the noise

Noisy static analysis rules train developers to ignore all tool findings, including critical ones, so engineering system owners should prune false-positive-prone rules. Microsoft's 1ES team found a Pareto effect in bug telemetry: a small number of rules, such as CA2202 "Do not dispose objects multiple times," produced most "Won't Fix, False Positive" resolutions. Deprecating those rules caused an immediate and sustained drop in false positive reports as developers came to trust tool findings more. The key recommendation is to analyze noise per rule rather than per tool, since the same tool can have highly valuable rules, like Code Analysis cryptography checks that developers fix over 99% of the time.

Related posts

  • Protecting user data through source code analysis at scale

    Meta Engineering mediumAdept

    Meta's Anti-Scraping team encodes known scraping attack vectors as taint-analysis rules in its in-house static analyzers, Zoncolan for Hack and Pysa for Python, so potential vectors are flagged before code ships. Rules define sources (user-controlled parameters such as a result count or target ID) and sinks (data returned to the user), and a possible flow between them is raised as an issue for triage. In a mock followers endpoint, an uncapped count lets scrapers pull entire follower lists in one request and slip past rate limiting. The fix clamps count to a maximum, forcing scrapers into many more requests that rate limits then catch. Static analysis cannot catch scrapers that mimic legitimate usage, so it is one part of a broader defense.

  • Incident Report: February 11, 2026

    Railway mediumAdept

    A new automated anti-fraud ruleset at Railway used overly broad workload-fingerprinting criteria. It matched legitimate processes, including Postgres and MySQL databases, and sent them SIGTERM, leaving about 3% of workloads in a "forced pause" state. The rule had passed staging tests and a production dry run, but false positives appeared only after live staged rollout. Reverting it and restarting affected deployments took about four hours, and the mass restart caused deployment backpressure. Planned fixes include broader false-positive testing against common workloads, longer observation windows, tier-based staged rollout, and safeguards that exempt known legitimate process types from enforcement.

  • DrP: Meta’s Root Cause Analysis Platform at Scale

    Meta Engineering easyNovice

    DrP is Meta's root cause analysis platform that lets engineers codify incident investigation playbooks as "analyzers" using an SDK with helpers for anomaly detection, event isolation, time series correlation and dimension analysis. Analyzers are backtested in code review, chained across dependent services, auto-triggered by alerts, and run on a multi-tenant backend with a request queue and worker pool. A post-processing system annotates alerts and can open tasks or pull requests for mitigation. Used by 300+ teams with 2,000 analyzers running 50,000 analyses daily, DrP has cut MTTR by 20-80%.

  • Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics

    Shopify Engineering mediumAdept

    A Monte Carlo simulation can quantify how much sampling noise obscures real trends in a success metric that can only be measured by sampling, using Shopify App Store audits (a "shop issue rate" modeled as Poisson-distributed requirement violations) as the example. The method defines simulation metrics such as MAPE and the share of months where the sampled metric decreases (1mDO, 2mDO), generates sampled time series under assumed monthly improvement rates, repeats them across iterations, and grid-searches sample size and effect size in Python/pandas. With 10 mean issues, 100 audits per month and a true 5% monthly decrease, a decrease is observed in 83% of months and 97% over two months, giving stakeholders a concrete tradeoff between audit cost and certainty.

  • Leveraging AI for efficient incident response

    Meta Engineering mediumAdept

    Meta's AI-assisted root cause analysis system narrows suspect code changes in its web monorepo by combining a heuristic retriever with a fine-tuned Llama 2 (7B) ranker. The retriever uses signals such as code and directory ownership and the runtime code graph to cut thousands of changes down to a few hundred. The ranker then runs an 'election': each prompt holds up to 20 changes and picks the top five, and results are aggregated and repeated until five candidates remain. Backtesting shows the root cause lands in the top five for 42% of investigations at creation time. The biggest gain came from continued pre-training on internal artifacts plus supervised fine-tuning on about 5,000 historical RCA examples, including logprob-ranked list outputs, while confidence thresholds suppress low-confidence suggestions in favor of precision.

The quest for software engineering knowledge.

Look:
Layout: