
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Context based access control API
yarn
yarn start
POST /access-control/validate
Content-Type: application/json
[
{
"access": "a:b:c",
"context":{
"clientSide": {
"roles": ["M", "C"]
},
"serverSide":{}
}
},
{
"access": "b"
}
]
HTTP/1.1 200 OK
Content-Length: 11
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Feb 2022 07:08:31 GMT
Keep-Alive: timeout=58
Vary: Origin, Accept-Encoding
X-Response-Time: 2ms
[
false,
true
]
POST /access-control/global
Content-Type: application/json
[
{
"alias": "rbac",
"claim": {
"content": "../validators/rbac.js"
}
},
{
"alias": "allow",
"claim": {
"userDefined": true,
"content": "return true"
}
},
{
"alias": "deny",
"claim": {
"userDefined": true,
"content": "return true"
}
}
]
HTTP/1.1 200 OK
Content-Length: 11
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Feb 2022 07:16:27 GMT
Keep-Alive: timeout=58
Vary: Origin, Accept-Encoding
X-Response-Time: 13ms
{
"ok": true
}
GET http://localhost:4242/access-control/global
HTTP/1.1 200 OK
Content-Length: 203
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Feb 2022 07:19:54 GMT
Keep-Alive: timeout=58
Vary: Origin, Accept-Encoding
X-Response-Time: 1ms
[
{
"alias": "rbac",
"claim": {
"content": "../validators/rbac.js"
}
},
{
"alias": "allow",
"claim": {
"userDefined": true,
"content": "return true"
}
},
{
"alias": "deny",
"claim": {
"userDefined": true,
"content": "return true"
}
}
]
POST http://localhost:4242/access-control/access/validators/a:b:c
Content-Type: application/json
[
{
"alias": "rbac"
},
{
"claim": {
"userDefined": true,
"content": "return true"
}
},
{
"alias": "deny",
"claim": {
"userDefined": true,
"content": "return false"
}
}
]
HTTP/1.1 200 OK
Content-Length: 61
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Feb 2022 07:25:50 GMT
Keep-Alive: timeout=58
Vary: Origin, Accept-Encoding
X-Response-Time: 1ms
{
"ok": true,
"data": [
"rbac",
"6215e17e3865af7eebae0d6c",
"deny"
]
}
POST http://localhost:4242/access-control/access/a:b:c/rbac/props
Content-Type: application/json
{
"roles": ["A", "B"]
}
HTTP/1.1 200 OK
Content-Length: 11
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Feb 2022 07:55:49 GMT
Keep-Alive: timeout=58
Vary: Origin, Accept-Encoding
X-Response-Time: 1ms
{
"ok": true
}
GET http://localhost:4242/access-control/access/a:b:c
HTTP/1.1 200 OK
Content-Length: 42
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Feb 2022 07:58:23 GMT
Keep-Alive: timeout=58
Vary: Origin, Accept-Encoding
X-Response-Time: 1ms
[
"rbac",
"6215e17e3865af7eebae0d6c",
"deny"
]
GET http://localhost:4242/access-control/access/a:b:c/rbac/props
HTTP/1.1 200 OK
Content-Length: 19
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Feb 2022 08:01:47 GMT
Keep-Alive: timeout=58
Vary: Origin, Accept-Encoding
X-Response-Time: 1ms
{
"roles": [
"A",
"B"
]
}
GET http://localhost:4242/access-control/alias/exists?alias=rbac
HTTP/1.1 200 OK
Content-Length: 11
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Feb 2022 08:04:23 GMT
Keep-Alive: timeout=58
Vary: Origin, Accept-Encoding
X-Response-Time: 0ms
{
"ok": true
}
GET http://localhost:4242/access-control/access
FAQs
Context based access control
The npm package cbac receives a total of 0 weekly downloads. As such, cbac popularity was classified as not popular.
We found that cbac demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.