Repository navigation
v3.3.0
[3.3.0] - 2026-02-13
Added
DevOps Remediation Agent
- New
skylos agent remediatecommand — end-to-end security & quality remediation agent that scans, prioritizes, fixes, tests, and creates PRs autonomously--dry-runshows remediation plan without touching files--max-fixes Ncaps the number of fixes per run--auto-prcreates a git branch, commits fixes, pushes, and opens a PR viagh--test-cmd CMDoverrides test suite auto-detection (supports pytest, unittest, tox, Makefile)--severity LEVELfilters findings to fix (critical, high, medium, low)--branch-prefix PREFIXcustomizes the git branch name (defaultskylos/fix)
skylos/llm/planner.py—RemediationPlannerthat prioritizes findings by severity, groups by file, sorts auto-fixable rules first, and caps atmax_fixesskylos/llm/executor.py—RemediationExecutorthat applies fixes to disk with backup/revert, auto-detects test suites, runs tests, verifies fixes via re-scan, and handles git branch/commit/push/PR creationskylos/llm/orchestrator.py—RemediationAgentthat orchestrates the full 5-step lifecycle- Added
build_pr_description()toskylos/llm/prompts.pyfor generating structured PR bodies with fix/failure/skip tables - Added
remediateMCP tool toskylos_mcp/server.py— AI assistants can invoke the full remediation loop via MCP
Tests
- 24 tests for the remediation agent (planner, executor, orchestrator, PR description)
- 32 tests for MCP server security rules
- Added tests for CORS, JWT, open redirect, mass assignment, deserialization, sanitizers, TypeScript expanded rules, new quality rules, and non-Python secrets
CI/CD Integration
- New
skylos cicdcommand group for CI/CD integrationskylos cicd initgenerates GitHub Actions workflow (.github/workflows/skylos.yml) with configurable triggers, analysis types, and optional LLM reviewskylos cicd gateruns quality gate checks from a JSON results fileskylos cicd annotateemits GitHub Actions annotations from a JSON results fileskylos cicd reviewposts inline PR review comments and a summary viaghCLI, filtered to changed lines only
--summaryflag onskylos . --gateto write a markdown results table to$GITHUB_STEP_SUMMARY- Added MCP server (
skylos_mcp/) exposinganalyze,security_scan,quality_check, andsecrets_scanas tools via FastMCP
New Security Rules
- SKY-D230 (HIGH): Open redirect detection — taint-flow from user input to
redirect(),HttpResponseRedirect(),HttpResponsePermanentRedirect() - SKY-D231 (HIGH): CORS misconfiguration — detects
CORS_ALLOW_ALL_ORIGINS = True,Access-Control-Allow-Origin: *,CORS()without explicit origins - SKY-D232 (CRITICAL): JWT security issues —
algorithms=['none'],verify=False, disabled signature verification - SKY-D233 (CRITICAL): Untrusted deserialization —
marshal.loads,shelve.open,jsonpickle.decode,dill.loads,dill.load - SKY-D234 (HIGH): Mass assignment —
Meta.fields = '__all__'in Django ModelForms and DRF serializers - Sanitizer framework for taint analysis: XSS (
html.escape,bleach.clean), CMD (shlex.quote), URL (urllib.parse.quote), PATH (os.path.basename) sanitizers clear taint contextually - OWASP Top 10 and PCI DSS 4.0 compliance mappings for all new rules
New TypeScript Security Rules
- SKY-D503 (HIGH):
document.write()— XSS risk - SKY-D504 (CRITICAL):
new Function()— equivalent to eval - SKY-D505 (HIGH):
setTimeout/setIntervalwith string argument — eval equivalent - SKY-D506 (HIGH):
child_process.exec()— command injection, suggestsexecFile() - SKY-D507 (HIGH):
outerHTMLassignment — XSS risk - SKY-D240 (HIGH): Tool poisoning — detects hidden instructions in MCP tool descriptions
- SKY-D241 (HIGH): Unauthenticated transport — MCP servers using
sseorstreamable-httpwithout authentication middleware - SKY-D242 (HIGH): Permissive resource URI —
file://or wildcard{path}patterns in MCP resource URIs - SKY-D243 (HIGH): Network-exposed MCP —
host="0.0.0.0"without binding to localhost - SKY-D244 (CRITICAL): Secrets in tool defaults — hardcoded API keys, tokens, or passwords in MCP tool parameter defaults
- OWASP Top 10 and PCI DSS 4.0 compliance mappings for all MCP rules
New Quality Rules
- SKY-L005 (LOW): Unused exception variable —
except ValueError as ewhereeis never used - SKY-L006 (MEDIUM): Inconsistent return — functions with mixed explicit returns and bare returns
- SKY-Q501 (MEDIUM): God class detection — classes exceeding configurable method count (20) or attribute count (15)
New TypeScript Quality Rules
- SKY-Q601: Cyclomatic complexity (threshold: 10)
- SKY-Q602: Nesting depth (threshold: 4)
- SKY-Q603: Function length (threshold: 50 lines)
- SKY-Q604: Parameter count (threshold: 5)
Language Support
- Go language support via pluggable engine architecture (
skylos/engines/) - TypeScript import tracking (named, default, and namespace imports) with unused import detection
- Secrets scanning expanded to
.env,.yaml,.yml,.json,.toml,.ini,.cfg,.conf,.ts,.tsx,.js,.jsx,.go
Fixed
- Fixed
import jsoninsidemain()shadowing the module-leveljsonimport, causingUnboundLocalErrorin all CLI paths that calljson.loads()after the agent remediate block - LLM marked all
_-prefixed dead code as alive by speculating about dynamic dispatch without evidence in the code context - Removed deprecated
ast.NameConstantcompatibility incalls.py— now usesast.Constantonly
Changed
_emit_github_annotations()now sorts annotations by severity and caps output at 50 (GitHub's limit), with optionalseverity_filterandmax_annotationsparamsrun_gate_interaction()accepts a newsummarykeyword arg to write markdown to$GITHUB_STEP_SUMMARY- SYSTEM_PROMPT requires citing a specific line for FP verdicts and explicitly states underscore prefix != dynamic usage
- Taint-flow scanners (cmd, fs, net, xss) now accept context-specific sanitizer sets
danger.pyrefactored to share parsed AST tree across all scanners instead of re-parsing per scanner