Skip to content

TimeCodeSecurity v1.0.0 — Production Release

Choose a tag to compare

@kushigaur3103-svg kushigaur3103-svg released this 18 Sep 11:23
· 287 commits to main since this release

🚀 What's New in v1.0.0

We are proud to release TimeCodeSecurity (TCS) v1.0.0 — the first production-ready milestone of our deterministic security orchestrator. TCS moves beyond alerting by coupling AST-level static analysis with closed-loop, compile-verified automated patching.


Key Capabilities

  • Deterministic Auto-Remediation (Vector D):
    • CWE-89 (SQL Injection): Automatic parameterized query rewriting with safe bind tuples.
    • CWE-78 (Command Injection): Safe argv tokenization via shlex and shell=False execution. Rejects dangerous shell semantics (|, >, &) safely.
    • CWE-22 (Path Traversal): Enforces strict .resolve() boundary canonicalization and .is_relative_to() containment guards.
  • Multi-Finding Line-Shift Protection:
    • Uses opcode delta tracking (SequenceMatcher) and AST call site re-anchoring to allow multiple vulnerability fixes in the same file without offset corruption.
  • Filesystem & Transactional Integrity:
    • Enforces atomic file writes via temporary sibling files and os.replace.
    • Preserves exact line-ending byte semantics (LF vs CRLF) without platform leaks.
    • Rejects symlinks, hardlinks (nlink > 1), and read-only files safely.
  • PEP 517/621 Packaging:
    • Fully packaged Python distribution exposing the global tcs console script.
    • Verified to run seamlessly across arbitrary external working directories.
  • Interactive Web Studio:
    • Full integration with FastAPI Web UI featuring syntax-highlighted unified diffs and one-click patch application.

📈 Verification & Benchmarks

  • Comprehensive Test Suite: 266 / 266 PASS (Vectors A, B, C, D, and CLI packaging).
  • End-to-End Pipeline Speed: 715 ms for a 3-microservice repository (Preview → Verification → Write → Re-audit).
  • Security Score: 100/100 CLEAN achieved on live smoke repos.

📦 Quick Install

git clone [https://github.com/kushigaur3103-svg/time-code-security.git](https://github.com/kushigaur3103-svg/time-code-security.git)
cd time-code-security
pip install -e .
tcs --help