cd /news/developer-tools/timecodesecurity-deterministic-ast-s… · home topics developer-tools article
[ARTICLE · art-134494] src=news.ycombinator.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

TimeCodeSecurity – Deterministic AST SAST and Auto-Remediation for Python

Developer Ayush Gaur released TimeCodeSecurity (TCS), an open-source static application security testing (SAST) engine for Python that uses deterministic Abstract Syntax Tree (AST) taint tracking instead of regex patterns or LLMs. TCS tracks dataflow from function parameters into sensitive execution sinks including subprocess.run, raw SQL cursors, and path operations, and validates remediation patches via AST syntax compilation and in-memory re-scanning before writing to disk, running in roughly 700ms per scan. The tool is installable via pip from its GitHub repository and was posted to Hacker News, where it received 2 points and 0 comments.

by read1 min views1 publishedSep 19, 2026

Hi Hacker News! I built TimeCodeSecurity (TCS), an open-source static security engine for Python.

Most existing open-source SAST tools rely on regex patterns or LLMs, leading to high false-positive rates and alert fatigue. TCS takes a compiler-level deterministic approach: it parses Python's Abstract Syntax Tree (AST) and tracks dataflow from function parameters directly into sensitive execution sinks (subprocess.run, raw SQL cursors, and path operations).

Key highlights: - Deterministic AST taint tracking (Zero regex / Zero AI guessing) - Closed-loop remediation: Patches are validated via AST syntax compilation and re-scanned in-memory before touching disk - Chronological visual proof graphs: Source -> Taint -> Sink - Sub-second execution (~700ms)

You can run it directly in your terminal:

  pip install git+https://github.com/kushigaur3103-svg/time-code-security.git
  tcs scan ./your_project --fix

GitHub: https://github.com/kushigaur3103-svg/time-code-security Would love feedback on the AST traversal and in-memory verification approach! https://github.com/kushigaur3103-svg/time-code-security And that's my linkdin link https://www.linkedin.com/in/ayush-gaur-1488b1420?utm_source=share_via&utm_content=profile&utm_medium=member_android

Comments URL: https://news.ycombinator.com/item?id=49765426

Points: 2

── more in #developer-tools 4 stories · sorted by recency
── more on @timecodesecurity 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/timecodesecurity-det…] indexed:0 read:1min 2026-09-19 ·