{"id":36622240,"url":"https://github.com/baidu-security/openrasp-v8","last_synced_at":"2026-01-12T09:25:42.355Z","repository":{"id":43169917,"uuid":"172491011","full_name":"baidu-security/openrasp-v8","owner":"baidu-security","description":"Google V8 with OpenRASP builtins","archived":false,"fork":false,"pushed_at":"2021-04-26T19:40:02.000Z","size":2559,"stargazers_count":53,"open_issues_count":5,"forks_count":33,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-18T23:02:47.316Z","etag":null,"topics":["go","java","javasc","javascript","openrasp","php","plugin","v8"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baidu-security.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-25T11:11:10.000Z","updated_at":"2023-12-26T14:59:24.000Z","dependencies_parsed_at":"2022-09-17T22:02:19.896Z","dependency_job_id":null,"html_url":"https://github.com/baidu-security/openrasp-v8","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/baidu-security/openrasp-v8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu-security%2Fopenrasp-v8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu-security%2Fopenrasp-v8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu-security%2Fopenrasp-v8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu-security%2Fopenrasp-v8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baidu-security","download_url":"https://codeload.github.com/baidu-security/openrasp-v8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baidu-security%2Fopenrasp-v8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","java","javasc","javascript","openrasp","php","plugin","v8"],"created_at":"2026-01-12T09:25:42.279Z","updated_at":"2026-01-12T09:25:42.350Z","avatar_url":"https://github.com/baidu-security.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openrasp-v8 \n\n![CI](https://github.com/baidu-security/openrasp-v8/workflows/CI/badge.svg)\n\nGoogle V8 JavaScript engine with OpenRASP builtins, and bridges that are used to embed V8 within languages which are supported by [OpenRASP](https://github.com/baidu/openrasp).\n\nCurrently supported languages:\n\n- PHP\n- Java\n- Go\n\n## Features\n\n### OpenRASP attack detect engine in JavaScript\n\nFull JavaScript runtime context of OpenRASP attack detect engine, with simple C++ interfaces and helpers.\n\nIntegrating openrasp-v8 in other languages only need several lines.\n\n### Lexical analyzer\n\nFlex lexical analyzer is embeded in openrasp-v8 to tokenize sql and command strings. Just call `RASP.sql_tokenize` or `RASP.cmd_tokenize`\n\n### HTTP request\n\nThe http request method is `RASP.request`. It accepts a configure object and returns a promise. Just like the axios.\n\n### Platform independent\n\nYou can build and use it on different OS types, different OS versions and different OS archs.\n\nFor convenience of build, we have built some third-party libraries to static libraries:\n\n- Linux x64\n- Linux x86\n- Linux musl\n- OSX x64\n- Windows x64\n- Windows x86\n\nFor compatibility of Linux, most libraries will be staticly linked into openrasp-v8, even libc++. You can even use centos6 sysroot to force linker to link old version glibc.\n\n### Support multiple languages\n\nWe will continuely add more languages to our support list.\n\nThe language support briges are not just some C++ ports, but also the language specified native interfaces. Such as jni fo Java and cgo for Go.\n\n## Build\n\nWe use CMake to generate the files needed by your build tool (GNU make, Visual Studio, Ninja, etc.) for building openrasp-v8 and its language ports.\n\nFor example:\n\n```shell\nmkdir build\ncd build\ncmake -DENABLE_LANGUAGES=all ..\nmake\nmake test\n```\n\nThe openrasp-v8 specified cmake variables:\n\n- ENABLE_LANGUAGES\n\n  Cmake list of languages to build, or all for building all (base, php, java, go)\n\n- BUILD_TESTING\n  \n  Boolean option for whether the tests will be built\n\n- BUILD_COVERAGE\n\n  Boolean option for whether the coverage will be built\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaidu-security%2Fopenrasp-v8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaidu-security%2Fopenrasp-v8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaidu-security%2Fopenrasp-v8/lists"}