lilith-skill 0.1.0 โ 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -63
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,49 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Lilith
|
|
2
|
+
|
|
3
|
+
```text
|
|
4
|
+
owUzOoMdQwdd0XXXYJJUUzurt\(){{}}}[[[[[[[]]]]]??????--------___+~>!" '"l><~++~>!;`
|
|
5
|
+
dJnfuZakZXYYCJnt\\/tfncYCLJzn/(){}[]]????????---------___++~<iI` 'I+][[]_i;`
|
|
6
|
+
OzjtfnCpkOYcunvvj\()1{11)(/jnczcr|}[??---------_____+++~~>i;' ^i+-+!,.
|
|
7
|
+
OYvnnncQk#hobOXvczcvx/|){{}}}{)\/t\{]?-----____++++~<>i;" 'Iii;' ";:,":l>-{)+:.
|
|
8
|
+
bbkao*#W8@$$$$$%&M#*#dCuf\(11{{}{{1){]-____++++~~<>!:. .":;". `!}uQQOpoM8BB&adZCznf|{{
|
|
9
|
+
LCQmh%$$$$$BB$$$$B%%$$$%aZXx/(){{}[[]?__++++~~<>i;' ^,,"' ^i}xLd*&B$$$$$$$BMW%$$$&dz([
|
|
10
|
+
pdo8$$@MdZQQk%@8#d0QZhW@$$$WbCr|1[]?-_+++~~~>iI^ . :-fLkM88#kqboM&&M*hwzxnJp#B$Wb0
|
|
11
|
+
*MB$$Bk0Yzczp%$8&Moa#&Mohoo*MWomv)]_+~~<<>i!;^ >\Jd#WWM&&M#8$$%&MokOu{}})jQMBWb0
|
|
12
|
+
pmwb#Wo0x\((zb%&MohkkwYjxwpUjvdhwYt]<>!I,. I]fUpW&d0OdQf[upaao#&&0['."]nQLC/l'
|
|
13
|
+
pqOJC0mQv|1{\vqkmJczUJLQJUOqdkdQUc(~: '!1\/vkkqZLcUUznnnrzYqZ1 +t|-"
|
|
14
|
+
okOznjxYLz/1{{|YLnn/t/tftrjncvx1~;' "|r)|()(|\|(|\/uj> l<!
|
|
15
|
+
&Wh0n\)(\junt)1)\xc/~I!<+?{{(< '<?+:'`^;!+}}, :: '<
|
|
16
|
+
8&MhOYr\)))(|tft\||(((|(1_;. '''.. ' !_
|
|
17
|
+
%88&*wXunx/()11{11)1}?<, ":'
|
|
18
|
+
8888&Mh0nttjjj/)1}]_!'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Lilith is an agent skill that checks apps built with AI tools for the security holes those tools tend to leave: secret keys shipped to the browser, Supabase tables without row level security, API routes that never check who is calling, payment webhooks nobody verifies. It explains each finding in plain language and fixes the ones you approve. After security it can also clean up leftover AI code and UI.
|
|
2
22
|
|
|
3
|
-
|
|
23
|
+
## Install
|
|
4
24
|
|
|
5
25
|
```bash
|
|
6
26
|
npx lilith-skill
|
|
7
27
|
```
|
|
8
28
|
|
|
9
|
-
|
|
29
|
+
The installer finds the coding agents on your machine (Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf) and copies the skill to where each one looks for skills. Run it again to update. It needs Node.js 18 or later. The quick scan also uses Python 3.8+ when it is installed; without Python the agent reads the code instead.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx lilith-skill --agent claude # one agent only
|
|
33
|
+
npx lilith-skill --project # install into the current project
|
|
34
|
+
npx lilith-skill scan . # run the quick scan yourself
|
|
35
|
+
npx lilith-skill uninstall
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Other tools that support [Agent Skills](https://agentskills.io) can install it with `npx skills add Sunnik21/lilith -g`.
|
|
39
|
+
|
|
40
|
+
If you build in Lovable, Bolt or v0 and have no terminal, paste the prompt from [PROMPT.md](PROMPT.md) into the project chat instead.
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Type `/lilith` in your agent, or ask in plain words: "check my app before launch", "is my app safe?", "clean up my landing page", "help me secure my VPS".
|
|
45
|
+
|
|
46
|
+
Lilith reports first and changes nothing until you agree. A report looks like this:
|
|
10
47
|
|
|
11
48
|
```
|
|
12
49
|
Live database: checked (Supabase query results pasted)
|
|
@@ -21,53 +58,19 @@ in the OpenAI dashboard (only you can do this).
|
|
|
21
58
|
Want me to fix the ๐ด ones now?
|
|
22
59
|
```
|
|
23
60
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
---
|
|
61
|
+
## Why
|
|
27
62
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- **CVE-2025-48757** (CVSS 9.3, critical): insufficient Row Level Security in apps generated by Lovable "allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites" ([NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-48757)). Lovable disputes the CVE, saying each customer is responsible for protecting their app's data.
|
|
63
|
+
- CVE-2025-48757 (CVSS 9.3, critical): insufficient Row Level Security in apps generated by Lovable "allows remote unauthenticated attackers to read or write to arbitrary database tables of generated sites" ([NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-48757)). Lovable disputes the CVE, saying each customer is responsible for protecting their app's data.
|
|
31
64
|
- The researcher's scan "identified 303 endpoints across 170 projects (approximately 10.3% of the 1645 analyzed) with inadequate RLS settings" ([Matt Palmer, May 29, 2025](https://mattpalmer.io/posts/statement-on-CVE-2025-48757/)).
|
|
32
65
|
- UpGuard "found 16,326 Supabase databases exposing readable tables" out of about 300,000 domains using Supabase, and 55.8% of them held personal information. Its explanation: "Tables created programmatically through the API, which is how coding agents interact with Supabase, do not enable RLS by default" ([UpGuard, September 23, 2026](https://www.upguard.com/blog/everything-everywhere-systemic-data-exposure-in-supabase-apps)).
|
|
33
66
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## What you get
|
|
67
|
+
Code alone can't show whether a live database is open. For Supabase, Lilith gives you a read-only query to run in the SQL Editor; it reads settings, not your data. For Firebase it asks for your deployed rules.
|
|
37
68
|
|
|
38
|
-
|
|
39
|
-
- ๐๏ธ **Live database check.** One read-only query for the Supabase SQL Editor: it reads settings, never your data.
|
|
40
|
-
- ๐ฃ๏ธ **For beginners.** Every issue: what's wrong, why it matters, how to fix. In your language.
|
|
41
|
-
- ๐งน **Then cleanup.** Leftover logs, fake data, dead buttons, AI-look UI, filler marketing copy.
|
|
42
|
-
- ๐ **Runs on your machine.** No account, no server, your code never leaves your computer.
|
|
69
|
+
Lilith has no account and no server. Your code goes only to the AI agent you already use.
|
|
43
70
|
|
|
44
|
-
##
|
|
71
|
+
## Checks
|
|
45
72
|
|
|
46
|
-
|
|
47
|
-
npx lilith-skill
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
This finds the coding agents on your computer (Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf) and puts the skill where each one looks. Run it again to update. Needs Node.js 18+; the quick scan also needs Python 3.8+ (optional: without it, the agent checks by reading).
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
npx lilith-skill --agent claude # only one agent
|
|
54
|
-
npx lilith-skill --project # into this project instead of your home folder
|
|
55
|
-
npx lilith-skill scan . # run the quick scan yourself
|
|
56
|
-
npx lilith-skill uninstall # remove it
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Other tools that support [Agent Skills](https://agentskills.io) work too: `npx skills add Sunnik21/lilith -g`.
|
|
60
|
-
|
|
61
|
-
Say `/lilith`, or in words:
|
|
62
|
-
|
|
63
|
-
- "Check my app before launch"
|
|
64
|
-
- "Is my app safe?"
|
|
65
|
-
- "Clean up the AI slop in my landing page"
|
|
66
|
-
- "Help me secure my VPS"
|
|
67
|
-
|
|
68
|
-
## What it checks
|
|
69
|
-
|
|
70
|
-
| | Check | Example |
|
|
73
|
+
| ID | Check | Example |
|
|
71
74
|
|---|---|---|
|
|
72
75
|
| S1 | Secret keys in code or git | `sk_live_...` in a file, `.env` committed |
|
|
73
76
|
| S2 | Secrets sent to the browser | `NEXT_PUBLIC_OPENAI_KEY`, OpenAI called from React |
|
|
@@ -87,21 +90,22 @@ Say `/lilith`, or in words:
|
|
|
87
90
|
| U1โU20 | UI and copy | eyebrow labels, fake badges, gradients, "seamless", "elevate" |
|
|
88
91
|
| VPS | Own server | firewall, SSH keys, closed database ports |
|
|
89
92
|
|
|
90
|
-
|
|
93
|
+
Each check, with how to spot and fix it, is in [skills/lilith/guides](skills/lilith/guides).
|
|
94
|
+
|
|
95
|
+
## Accuracy
|
|
91
96
|
|
|
92
|
-
|
|
97
|
+
The benchmark in [bench/](bench/) has three small apps written the way AI tools write them: Vite + React + Supabase, Next.js + Supabase + Stripe + OpenAI, and Express + Prisma + JWT. Between them they hold 31 planted security bugs and 17 decoys, things that look wrong but are fine, such as the Supabase anon key or `console.error` in an error handler. Each app also has a fixed version.
|
|
93
98
|
|
|
94
|
-
|
|
99
|
+
Full skill, one run per app, claude-opus-5-5 via `claude -p`, 2026-11-20 ([bench/RESULTS.md](bench/RESULTS.md)):
|
|
95
100
|
|
|
96
|
-
|
|
101
|
+
- Found all 31 planted bugs, including the ones no regex can see: users reading each other's data, prices trusted from the browser, a paid plan unlocked from `?success=true`.
|
|
102
|
+
- Flagged none of the 17 decoys.
|
|
103
|
+
- Raised 3 false alarms, all outdated-package warnings (S13), partly because the benchmark's lockfiles are empty.
|
|
104
|
+
- Matched our severity on 24 of 31; when it differed, it usually rated one level higher.
|
|
97
105
|
|
|
98
|
-
|
|
99
|
-
- Flagged **0 of 17** decoys.
|
|
100
|
-
- **3 false alarms**, all "outdated packages" (S13), partly caused by the benchmark's empty lockfiles.
|
|
101
|
-
- Severity matched ours on **24 of 31**; when it differed, it usually rated one level higher.
|
|
102
|
-
- One run per app. Results vary between runs and models, and 31 bugs in three small apps is not the real world.
|
|
106
|
+
That is one run per app on 31 bugs in three small apps. Results vary between runs and models.
|
|
103
107
|
|
|
104
|
-
|
|
108
|
+
The quick scan on its own (`lilith_scan.py`, deterministic, runs in CI):
|
|
105
109
|
|
|
106
110
|
| | Before this benchmark | Now |
|
|
107
111
|
|---|---|---|
|
|
@@ -110,24 +114,22 @@ Measured on a small benchmark in [bench/](bench/): three apps written the way AI
|
|
|
110
114
|
| Decoys flagged | 3/17 | 1/17 |
|
|
111
115
|
| Critical/high leads on the fixed apps | 3 | 0 |
|
|
112
116
|
|
|
113
|
-
The
|
|
117
|
+
The newer scanner patterns were written after looking at these apps, so the "Now" column is optimistic for other projects. The scanner still misses update policies that let users change their own `is_admin` or `plan` column, public storage buckets created in SQL, a paid plan unlocked in the browser, and secrets inside AI system prompts. It also flags credentialed CORS when the app uses no cookies. Those cases need reading, which is why the scan is only the first step.
|
|
114
118
|
|
|
115
|
-
|
|
119
|
+
To reproduce: `python3 bench/run_scanner.py` for the scanner, or `python3 bench/run_agent.py` for the full skill (needs the `claude` CLI, about $1.50 per run).
|
|
116
120
|
|
|
117
|
-
##
|
|
121
|
+
## Limits
|
|
118
122
|
|
|
119
|
-
Lilith is a
|
|
123
|
+
Lilith is a first check, not a penetration test. It reads your code and can't see settings that live only in your dashboards; it tells you what to check there. It never says an app is secure, only what it checked. If your app handles payments, health data or other sensitive data, get a human review as well.
|
|
120
124
|
|
|
121
|
-
##
|
|
125
|
+
## Contributing
|
|
122
126
|
|
|
123
|
-
Each check is a short section in a Markdown file.
|
|
127
|
+
Each check is a short section in a Markdown file. To add one:
|
|
124
128
|
|
|
125
|
-
1. Add a section to the right guide in `skills/lilith/guides/` with
|
|
129
|
+
1. Add a section to the right guide in `skills/lilith/guides/` with Spot it, Why and Fix.
|
|
126
130
|
2. If a regex can find it, add a pattern to `skills/lilith/scripts/lilith_scan.py` and a case to `tests/test_scan.py`.
|
|
127
|
-
3. Run `python3 tests/test_scan.py` and `python3 bench/run_scanner.py
|
|
131
|
+
3. Run `python3 tests/test_scan.py` and `python3 bench/run_scanner.py`. The scanner score must not drop.
|
|
128
132
|
|
|
129
133
|
## License
|
|
130
134
|
|
|
131
135
|
MIT. See [LICENSE](LICENSE) and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
|
132
|
-
|
|
133
|
-
Made by YOUR NAME ยท [your link]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lilith-skill",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Security check for vibecoded apps: an Agent Skill for Claude Code, Codex, Cursor, Copilot, Gemini CLI and more. Finds leaked keys, open Supabase/Firebase databases and missing login checks, in plain words.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|