剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 安全软件 vgx - A Git pre-commit secur…
vgx - A Git pre-commit security scanner with LLM integra 安全软件 点击放大
作者:admin 发布:2026-10-05

vgx - A Git pre-commit security scanner with LLM integra

项目说明VGXOpen-source security scanner for AI-assisted de.<p align="center"> <img src=" alt=""> <img src=" a…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
504浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-05
人工审核发布
评论区答疑

vgx - A Git pre-commit security scanner with LLM integra

项目说明

VGX

Open-source security scanner for AI-assisted de.

<p align="center">
<img src=" alt="">
<img src=" alt="License">
<img src=" alt="Stars">
</p>

<p align="center">
<a href="#installation">Installation</a> &bull;
<a href="#cli-reference">CLI Reference</a> &bull;
<a href="#api">API</a> &bull;
<a href="#">VS Code</a> &bull;
<a href="#how-it-works">How It Works</a>
</p>

---

The Problem

With AI coding assistants (Copilot, Cursor, Claude), de ship code they didn't write and often don't fully understand. Studies show:

  • 42% of code now has AI assistance (Sonar 2026)

  • 96% of de don't fully trust AI-generated code

  • 45% of AI-generated code contains security
  • you know what's AI-generated and catch before they hit production.

    ---

    Features

    | Feature | Description |
    |---------|-------------|
    | AI Code Detection | Identify AI-generated code using stylometry + pattern analysis |
    | Security Scanning | detection (+ optional OpenAI) |
    | Pre-commit Hooks | Block insecure code before it's committed |
    | VS Code Extension | Real-time AI detection in your editor |
    | Offline-First | No API keys required. Your code ne your machine. |
    | CI/CD Ready | JSON output for pipeline integration |

    ---

    Installation

    Quick Install (Linux/macOS)

    Go Install

    Docker

    Build from Source

    ---

    CLI Reference

    Commands

    — AI Code Detection

    Analyze files for AI-generated code patterns.

    Options:

    | Flag | Short | Default | Description |
    |------|-------|---------|-------------|
    | --path | -p | . | Path to scan |
    | --format | -f | text | Output format: text, json |
    | --threshold | | 70 | AI confidence threshold (0-100) |

    Example Output:

    vgx scan — Security Scanning

    Scan for using Semgrep rules.

    Options:

    | Flag | Default | Description |
    |------|---------|-------------|
    | --changes | true | Scan only git-changed files |
    | --report | true | Generate markdown report |
    | --update-context | true | Update file context cache |

    Detects:

  • Hardcoded secrets & API keys

  • SQL injection

  • XSS (Cross-Site Scripting)

  • Insecure cryptography

  • Path tra

  • Command injection

  • And more via Semgrep rules
  • ---

    API

    JSON Output Schema

    #### Detection Result

    #### Result

    Exit Codes

    | Code | Meaning |
    |------|---------|
    | 0 | Success, no issues found |
    | 1 | Issues found (AI code or ) |
    | 2 | Error (invalid path, etc.) |

    ---

    VS Code Extension

    Real-time AI code detection in your editor.

    Features

  • Status Bar Indicator — Shows AI confidence for current file

  • Inline Highlighting — Highlights AI-generated code patterns

  • Workspace Scanning — Scan entire workspace for AI code
  • Commands

    | Command | Description |
    |---------|-------------|
    | VGX: Detect AI Code in File | Analyze current file |
    | VGX: Detect AI Code in Workspace | Scan all files |
    | VGX: Security Scan File | Run security scan |

    Settings

    Installation

    ---

    How It Works

    AI Detection Algorithm

    VGX uses a combination of stylometry (code style analysis) and pattern matching to detect AI-generated code.

    Stylometry Features

    | Feature | AI Signal | Weight |
    |---------|-----------|--------|
    | Naming Consistency | High consistency = AI | 20% |
    | Indentation | Perfect consistency = AI | 20% |
    | Boilerplate Ratio | High boilerplate = AI | 20% |
    | Line Length | Low = AI | 15% |
    | Comment Density | ~15% density = AI | 10% |
    | Empty Line Ratio | Consistent spacing = AI | 10% |
    | A Line Length | ~45 chars = AI | 5% |

    Pattern Detection

    16+ language-specific patterns commonly generated by AI:

    Ja/TypeScript:

  • copilot_try_catch — Standard try/catch with console.error

  • async_await_fetch — Async function with await fetch

  • arrow_with_types — Typed arrow functions

  • use_effect_deps — React useEffect with dependency array

  • use_state_destructure — React useState destructuring
  • Go:

  • go_error_check — if err != nil { return } pattern

  • go_defer — defer file.Close() pattern

  • go_struct_init — Multi-line struct initialization
  • Python:

  • python_docstring — Docstrings with Args/Returns/Raises

  • python_type_hints — Function type annotations
  • ---

    Pre-commit Hook

    Block AI code or before commit.

    Setup

    With pre-commit framework

    ---

    Configuration

    out of the box with zero configuration.

    En

    | | Description |
    |----------|-------------|
    | OPENAI_API_KEY | Enable AI-enhanced scanning (optional) |
    | SEMGREP_RULES | Custom Semgrep rules (default: p/security-audit) |

    Example .env

    ---

    Project Structure

    ---

    Requirements

  • Go 1.22+ (for building)

  • Semgrep (optional, for security scanning)
  • ---

    Contributing

    Contributions welcome! Please read our contributing guidelines.

    ---

    License

    MIT License — see LICENSE

    ---

    Links

  • Website: vgx.sh

  • GitHub: github.com/rohansx/vgx

  • Author:
  • ---

    <p align="center">
    <sub>Built for de who ship AI-assisted code responsibly.</sub>
    </p>

    项目信息

    开发语言:Go

    Star 数:13

    技术要点

    该项目属于安全软件方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A Git pre-commit security scanner with LLM integration to detect vulnerabilities before they enter your codebase.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

    从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

    使用与学习建议

    1. 下载源码压缩包,解压到本地环境。

    2. 根据项目类型准备对应的运行环境与依赖。

    3. 按照 README 中的步骤完成配置与部署。

    4. 在隔离的测试环境中运行验证,避免影响生产系统。

    免责声明

    本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

    资源标题vgx - A Git pre-commit security scanner with LLM integra
    所属分类安全软件
    发布作者admin
    发布时间2026-10-05 22:58:42
    下载权限 免费下载
    附件数量2 个下载链接
    浏览次数504
    讨论数量0
    主题状态正常讨论中

    本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

    请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

    请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
    还没有讨论,快来抢沙发~
    登录 后才能参与讨论
    下载链接
    会员才能下载
    登录后开通会员
    同分类推荐
    暂无同类资源
    免费登录即可下载
    查看会员
    放大预览

    © 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

    Powered by 酷像SEOv3.0

    网站地图 Sitemap.xml
    首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册