oculon 0.1.5 → 0.1.6
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 +55 -3
- package/dist/cli/main.js +102 -0
- package/dist/core/evm.d.ts +20 -0
- package/dist/core/evm.js +165 -0
- package/dist/core/http.js +3 -0
- package/dist/core/quota.js +3 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +25 -0
- package/dist/mcp.js +31 -1
- package/dist/modules/address.d.ts +32 -0
- package/dist/modules/address.js +91 -0
- package/dist/modules/headers.d.ts +50 -0
- package/dist/modules/headers.js +108 -0
- package/dist/modules/honeypot.d.ts +36 -0
- package/dist/modules/honeypot.js +53 -0
- package/dist/modules/iban.d.ts +30 -0
- package/dist/modules/iban.js +82 -0
- package/dist/modules/lookalike.d.ts +34 -0
- package/dist/modules/lookalike.js +122 -0
- package/dist/modules/personal.d.ts +1 -1
- package/dist/modules/personal.js +14 -4
- package/dist/modules/utility.d.ts +121 -0
- package/dist/modules/utility.js +306 -0
- package/dist/telegram.d.ts +2 -0
- package/dist/telegram.js +43 -6
- package/dist/web/assets/logo-200.png +0 -0
- package/dist/web/burns.d.ts +21 -0
- package/dist/web/burns.js +53 -0
- package/dist/web/landing.html +1 -1
- package/dist/web/legal.html +1 -1
- package/dist/web/mcp.html +1 -1
- package/dist/web/openapi.js +4 -0
- package/dist/web/public.js +5 -1
- package/dist/web/server.d.ts +17 -0
- package/dist/web/server.js +129 -3
- package/dist/web/token.html +97 -0
- package/dist/web/token.json +9 -0
- package/dist/web/utility.html +225 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Open-source intelligence engine for the physical and digital world.** Oculon watches more than 50 public data sources (routing tables, exploit catalogs, transponders, satellites, ship trackers, registries and prediction markets), finds what is unusual, fuses observations about the same subject from independent sources into scored signals, and labels every result with where it came from and how fresh it is. An AI agent on top answers plain-language questions with sources.
|
|
4
4
|
|
|
5
|
-
[oculon.live](https://oculon.live) · [Documentation](https://oculon.live/docs) · [Privacy](https://oculon.live/privacy) · [Terms](https://oculon.live/terms)
|
|
5
|
+
[oculon.live](https://oculon.live) · [Documentation](https://oculon.live/docs) · [Privacy](https://oculon.live/privacy) · [Terms](https://oculon.live/terms) · [Token](#official-token)
|
|
6
6
|
|
|
7
7
|
[](https://github.com/oculonlive/oculon/actions/workflows/ci.yml)
|
|
8
8
|
[](LICENSE)
|
|
@@ -21,7 +21,8 @@ npx oculon ask "why is Nvidia in the news this week?"
|
|
|
21
21
|
- **Sourced by design.** Every answer names the sources it used and whether each one was live, cached or unavailable. Nothing is presented without provenance.
|
|
22
22
|
- **Cross-source signals.** When independent sources move on the same subject, Oculon fuses them into one scored signal with the evidence behind it, and storylines are tracked across days.
|
|
23
23
|
- **Measured, not claimed.** A time machine replays past days to calibrate the radar, a first-to-know check compares Oculon against media coverage, and forecasts are timestamped on Bitcoin so they cannot be edited later.
|
|
24
|
-
- **
|
|
24
|
+
- **Robinhood Chain, read block by block.** Oculon watches pools the minute they open, follows each token back to the wallet that deployed it (directly or through a launchpad) and counts how many of that wallet's launches are already dead. See [On-chain](#on-chain-robinhood-chain).
|
|
25
|
+
- **Built for agents.** 88 MCP tools locally over stdio (95 with the on-chain tools on), and 86 remotely at `https://mcp.oculon.live`; the SDK and CLI return the same objects, and `--json` works on every command.
|
|
25
26
|
- **Everyday checks.** Is this message a scam? Is this link dangerous? Is this claim true? Is my car recalled? Can someone spoof my email domain? Are my dependencies safe? What should I know before I travel? Who is calling me? Has my password leaked? Is this supplier real? Each answer names its sources, and any result can be shared as a link with a preview card.
|
|
26
27
|
- **Monitors in plain words.** "Tell me when there is an internet outage in Iran" becomes a rule that is re-checked on a schedule and reports only what changed, by email, in Telegram or in the app. Every visitor keeps their own monitors, with no account.
|
|
27
28
|
- **Everywhere people are.** A public Telegram bot ([@oculon_radar_bot](https://t.me/oculon_radar_bot)): forward it a suspicious message and it checks it. An OpenAPI spec at `/openapi.json` for ChatGPT Actions, n8n and Zapier.
|
|
@@ -29,7 +30,7 @@ npx oculon ask "why is Nvidia in the news this week?"
|
|
|
29
30
|
|
|
30
31
|
## Contents
|
|
31
32
|
|
|
32
|
-
[What it does](#what-it-does) · [Install](#install) · [CLI](#cli) · [MCP server](#mcp-server) · [Remote MCP](#remote-mcp) · [Analyst](#oculon-analyst) · [SDK](#sdk) · [Web app](#dashboard-and-schedule) · [Telegram bot](#telegram-bot) · [Configuration](#configuration) · [Deploy](#deploy) · [How it works](#how-it-works) · [Limits](#limits) · [Development](#development)
|
|
33
|
+
[What it does](#what-it-does) · [Install](#install) · [CLI](#cli) · [MCP server](#mcp-server) · [Remote MCP](#remote-mcp) · [Analyst](#oculon-analyst) · [SDK](#sdk) · [Web app](#dashboard-and-schedule) · [Telegram bot](#telegram-bot) · [Configuration](#configuration) · [Deploy](#deploy) · [How it works](#how-it-works) · [Limits](#limits) · [Development](#development) · [On-chain](#on-chain-robinhood-chain) · [Official token](#official-token)
|
|
33
34
|
|
|
34
35
|
## What it does
|
|
35
36
|
|
|
@@ -46,6 +47,11 @@ npx oculon ask "why is Nvidia in the news this week?"
|
|
|
46
47
|
| Country | `oculon country <name>` | One-page country brief: GDP, growth, GDP per person, inflation, unemployment and population, the IMF outlook for this year and next, head of state and government, capital, currency and its rate to the dollar, US and UK travel advice, internet outages, disaster alerts and the latest headlines | World Bank, IMF, Wikidata, open.er-api.com, US State Department, UK FCDO, Cloudflare Radar, GDACS, Guardian |
|
|
47
48
|
| Airport | `oculon airport <JFK\|EGLL\|name>` | Is an airport running normally? Current METAR and TAF (flight category, wind, visibility, ceiling), FAA ground stops, ground delay programs, delays and closures at US airports, and aircraft squawking an emergency within 150 km | aviationweather.gov (NOAA), FAA NAS status, adsb.lol, OurAirports |
|
|
48
49
|
| Phone | `oculon phone <+number> [--country US]` | Who is behind a number in a suspicious SMS or a missed call: country from the calling code, line type (mobile, landline, VoIP, premium rate), carrier and location, and warnings for premium-rate numbers, UK 070 personal numbers and the Caribbean area codes the FCC names in "one ring" callback scams. Never looks up the owner | ITU calling codes (offline), Numverify (free key, 100 a month) |
|
|
50
|
+
| IBAN | `oculon iban <IBAN> [--country NL]` | Checks an IBAN before you pay: country, length, ISO 13616 check digits and bank code, and a warning when the account is in a different country than the supplier. A valid IBAN does not prove who owns the account | Offline |
|
|
51
|
+
| Email headers | `oculon headers < headers.txt` | Paste the raw headers of a suspicious email: SPF, DKIM and DMARC results, the delivery path, the origin IP and country, and spoofing signs such as a Reply-To elsewhere or a display name posing as an address | Offline, ip-api.com |
|
|
52
|
+
| Lookalike domains | `oculon lookalike <domain>` | Typos, swapped letters, homoglyphs, extra words and other endings of a brand that exist in DNS, with mail servers, plus certificates issued in the last 90 days for names containing the brand | Google DNS, crt.sh, CertSpotter |
|
|
53
|
+
| Honeypot | `oculon honeypot <token> [--chain eth\|bsc\|base]` | Can this token be sold? A buy and sell simulation on its main pool plus recent holders' sells: honeypot verdict, buy and sell tax, holders who could not sell | honeypot.is |
|
|
54
|
+
| Crypto address | `oculon address <address>` | Before you send funds: chain from the format (Bitcoin, EVM, Solana, Tron), US OFAC sanctions, balance, transactions and labels, contracts posing as wallets, unused addresses | mempool.space, Blockscout, Solana RPC, OFAC |
|
|
49
55
|
| Password | `oculon password` · web app | Has a password appeared in a data breach? Only the first 5 characters of its SHA-1 hash are sent and the match happens locally (in the web app, in the browser); the password is never stored, logged or shown | Have I Been Pwned (Pwned Passwords) |
|
|
50
56
|
| Breaches | `oculon breaches [domain]` | The newest breaches added to Have I Been Pwned, or every breach of one domain or company: date, accounts affected and the kinds of data exposed. Sensitive breaches are left out | Have I Been Pwned (CC BY 4.0) |
|
|
51
57
|
| Company | `oculon company <name\|LEI\|EU VAT>` | Is a supplier real before you pay its invoice? An EU VAT number is checked live (valid or not, registered name and address); a name or LEI returns the legal entity, registered address, status, registration number and ultimate parent, with warnings for invalid numbers, inactive companies and lapsed records | EU VIES, GLEIF (Global LEI Index) |
|
|
@@ -138,6 +144,11 @@ oculon watch run # report only what changed since l
|
|
|
138
144
|
oculon brief # today's brief
|
|
139
145
|
oculon quota # today's API usage vs daily budgets
|
|
140
146
|
oculon phone "+1 876 555 0100" # who is calling? one-ring scam area code
|
|
147
|
+
oculon iban "DE89 3704 0044 0532 0130 00" --country NL # IBAN valid? account in another country?
|
|
148
|
+
oculon headers < headers.txt # was this email spoofed?
|
|
149
|
+
oculon lookalike example.com # lookalike domains and new certificates
|
|
150
|
+
oculon honeypot 0x6982508145454Ce325dDbE47a25d4ec3d2311933 # can this token be sold?
|
|
151
|
+
oculon address bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh # sanctions, balance, activity
|
|
141
152
|
oculon password # has my password leaked? (asked without echo)
|
|
142
153
|
oculon breaches adobe.com # breaches of a domain
|
|
143
154
|
oculon company NL004495445B01 # EU VAT number, LEI or company name
|
|
@@ -371,6 +382,47 @@ npm run build
|
|
|
371
382
|
|
|
372
383
|
Issues and pull requests are welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). Please report vulnerabilities privately as described in [SECURITY.md](SECURITY.md).
|
|
373
384
|
|
|
385
|
+
## On-chain: Robinhood Chain
|
|
386
|
+
|
|
387
|
+
Robinhood Chain pools, token and deployer checks, wallet checks and DeFi are live on [oculon.live](https://oculon.live) and on the remote MCP server. In your own install they are off by default; set `OCULON_ONCHAIN=1` to turn on the commands, MCP and agent tools, the schedule task, watch kinds and web sections.
|
|
388
|
+
|
|
389
|
+
| Check | Command | What it does | Sources |
|
|
390
|
+
|---|---|---|---|
|
|
391
|
+
| Robinhood Chain pools | `oculon rh` | Activity, trending and newly created pools with risk flags: thin liquidity, buys without sells, sudden dumps | GeckoTerminal, Blockscout |
|
|
392
|
+
| Deployer reputation | `oculon deployer <address>` | Every token a wallet launched, directly or through a launchpad, and how many are already dead | Blockscout, Robinhood Chain RPC |
|
|
393
|
+
| Token risk | `oculon token <address> --chain robinhood` (also eth, base, arbitrum, bsc, polygon) | Honeypot, tax and owner flags, contract verification, holder concentration, DEX liquidity and price, with a DANGER, CAUTION or OK verdict | GoPlus, Webacy, DexScreener, Blockscout |
|
|
394
|
+
| Wallet | `oculon wallet <address>` | Portfolio, age, transactions, known entities it trades with and risk labels (EVM, Solana, Robinhood Chain) | Zerion, Etherscan, Helius, Robinhood Chain RPC |
|
|
395
|
+
| DeFi | `oculon defi` | TVL crashes, stablecoin depegs, hacks, fear and greed | DefiLlama |
|
|
396
|
+
|
|
397
|
+
```sh
|
|
398
|
+
OCULON_ONCHAIN=1 npx oculon rh
|
|
399
|
+
OCULON_ONCHAIN=1 npx oculon deployer 0x...
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
Token and deployer verdicts are heuristics over pool and explorer data, not contract audits, and a verdict can be wrong.
|
|
403
|
+
|
|
404
|
+
## Official token
|
|
405
|
+
|
|
406
|
+
The only official Oculon token is `$OCULON` on Robinhood Chain:
|
|
407
|
+
|
|
408
|
+
```
|
|
409
|
+
0x12a3f1a05d827007f17a43a250cce44868c4a263
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
The same address is posted on [x.com/oculonlive](https://x.com/oculonlive) and at [oculon.live/thetoken](https://oculon.live/thetoken). If an address does not match all three exactly, it is not Oculon. Launchpad page: [ponsfamily.com](https://ponsfamily.com/launchpad/0x12a3f1a05d827007f17a43a250cce44868c4a263). Nothing here is financial advice.
|
|
413
|
+
|
|
414
|
+
### Utility
|
|
415
|
+
|
|
416
|
+
Everything is read from Robinhood Chain: nothing is custodied and nothing is paid to anyone. Burns go to the dead address, each burn counts once, and only the wallet that burned can use it (it signs the request). Oculon itself stays free.
|
|
417
|
+
|
|
418
|
+
| Use | How | What you get |
|
|
419
|
+
|---|---|---|
|
|
420
|
+
| Deep investigation | Burn 1,500,000 OCULON | One domain, wallet, token or company checked against every relevant source, published as a public page that links the burn |
|
|
421
|
+
| Live safety badge | Burn 2,000,000 OCULON | 30 days of live monitoring of one Robinhood Chain token, with an embeddable badge (`/badge/<token>.svg`) that turns red on danger. Burning never changes the verdict |
|
|
422
|
+
| Holder tier | Hold 3,500,000 OCULON, sign once | Up to 30 personal monitors, checked every 15 minutes instead of every hour |
|
|
423
|
+
|
|
424
|
+
Start at [oculon.live/utility](https://oculon.live/utility). Wallet sign-in is checked with keccak256 and secp256k1 written in this repo (`src/core/evm.ts`), so it adds no dependency.
|
|
425
|
+
|
|
374
426
|
## License
|
|
375
427
|
|
|
376
428
|
[MIT](LICENSE). Data from third-party sources remains subject to each provider's terms.
|
package/dist/cli/main.js
CHANGED
|
@@ -193,10 +193,15 @@ ${c.bold('Everyday checks')}
|
|
|
193
193
|
oculon password has this password leaked? (asked without echo; k-anonymity)
|
|
194
194
|
oculon breaches [domain] newest data breaches, or every breach of one domain (HIBP)
|
|
195
195
|
oculon company <name|LEI|EU VAT> is this supplier real? VAT check (VIES), LEI register (GLEIF)
|
|
196
|
+
oculon iban <IBAN> [--country NL] is this IBAN valid, and is the account in the supplier's country?
|
|
197
|
+
oculon headers < headers.txt raw email headers: SPF, DKIM, DMARC, path, origin, spoofing signs
|
|
198
|
+
oculon address <crypto address> chain, OFAC sanctions, balance and activity, no keys needed
|
|
196
199
|
|
|
197
200
|
${c.bold('Threat intel')}
|
|
198
201
|
oculon ip <IP|domain> abuse reports, scanners, threat reports, Tor, Spamhaus DROP, open ports
|
|
199
202
|
oculon hash <md5|sha1|sha256> is this file known malware or a known good file?
|
|
203
|
+
oculon lookalike <domain> lookalike domains that exist, new certificates naming the brand
|
|
204
|
+
oculon honeypot <token> [--chain eth|bsc|base] can this token be sold? buy/sell simulation, taxes
|
|
200
205
|
oculon ransomware [CC|sector|name] ransomware leak-site claims, newest first
|
|
201
206
|
oculon satellite [name|NORAD id] launches of the last 30 days, or one object's orbit (CelesTrak)
|
|
202
207
|
|
|
@@ -880,6 +885,102 @@ export const COMMANDS = {
|
|
|
880
885
|
printSources(r);
|
|
881
886
|
});
|
|
882
887
|
},
|
|
888
|
+
async iban(o, a) {
|
|
889
|
+
const q = a.pos.slice(1).join(' ').trim();
|
|
890
|
+
if (!q)
|
|
891
|
+
throw new UsageError('usage: oculon iban <IBAN> [--country NL]');
|
|
892
|
+
const r = await o.ibanCheck(q, typeof a.flags.country === 'string' ? { country: a.flags.country } : {});
|
|
893
|
+
emit(a, r, () => {
|
|
894
|
+
const d = r.result;
|
|
895
|
+
out(`${c.bold(d.formatted ?? d.input)} ${d.valid ? c.green('VALID FORMAT') : c.red('NOT VALID')}`);
|
|
896
|
+
if (d.countryName)
|
|
897
|
+
out(` ${[d.countryName, d.bank ? `${d.bank.kind} ${d.bank.code}` : null, d.sortCode ? `sort code ${d.sortCode}` : null].filter(Boolean).join(' · ')}`);
|
|
898
|
+
for (const p of d.problems)
|
|
899
|
+
out(c.red(` x ${p}`));
|
|
900
|
+
for (const w of d.warnings)
|
|
901
|
+
out(c.yellow(` ! ${w}`));
|
|
902
|
+
for (const x of d.advice)
|
|
903
|
+
out(` → ${x}`);
|
|
904
|
+
});
|
|
905
|
+
},
|
|
906
|
+
async headers(o, a) {
|
|
907
|
+
let raw = a.pos.slice(1).join(' ').trim();
|
|
908
|
+
if (raw && existsSync(raw))
|
|
909
|
+
raw = readFileSync(raw, 'utf8');
|
|
910
|
+
if (!raw && !process.stdin.isTTY)
|
|
911
|
+
raw = readFileSync(0, 'utf8');
|
|
912
|
+
if (!raw)
|
|
913
|
+
throw new UsageError('usage: oculon headers <file> (or pipe the raw headers in: oculon headers < headers.txt)');
|
|
914
|
+
const r = await o.headerCheck(raw);
|
|
915
|
+
emit(a, r, () => {
|
|
916
|
+
const d = r.result;
|
|
917
|
+
const tone = d.verdict === 'likely spoofed' ? c.red : d.verdict === 'suspicious' ? c.yellow : c.green;
|
|
918
|
+
out(`${c.bold(d.from.address ?? 'unknown sender')} ${tone(d.verdict.toUpperCase())} ${c.dim(`risk ${d.risk}/100`)}`);
|
|
919
|
+
out(` SPF ${d.auth.spf ?? '?'} · DKIM ${d.auth.dkim ?? '?'} · DMARC ${d.auth.dmarc ?? '?'}`);
|
|
920
|
+
if (d.origin.ip)
|
|
921
|
+
out(` sent from ${d.origin.ip}${d.origin.country ? ` · ${d.origin.country}` : ''}${d.origin.isp ? ` · ${d.origin.isp}` : ''}`);
|
|
922
|
+
for (const f of d.flags)
|
|
923
|
+
out(c.yellow(` ! ${f}`));
|
|
924
|
+
for (const x of d.advice)
|
|
925
|
+
out(` → ${x}`);
|
|
926
|
+
printSources(r);
|
|
927
|
+
});
|
|
928
|
+
},
|
|
929
|
+
async lookalike(o, a) {
|
|
930
|
+
const q = String(a.pos[1] ?? '').trim();
|
|
931
|
+
if (!q)
|
|
932
|
+
throw new UsageError('usage: oculon lookalike <domain>');
|
|
933
|
+
const r = await o.lookalikes(q);
|
|
934
|
+
emit(a, r, () => {
|
|
935
|
+
const d = r.result;
|
|
936
|
+
const tone = d.risk === 'high' ? c.red : d.risk === 'medium' ? c.yellow : c.green;
|
|
937
|
+
out(`${c.bold(d.domain)} ${tone(`${d.risk.toUpperCase()} RISK`)} ${c.dim(`${d.live.length} of ${d.checked} lookalikes exist`)}`);
|
|
938
|
+
for (const l of d.live.slice(0, 25))
|
|
939
|
+
out(` ${l.domain.padEnd(34)} ${c.dim(l.kind)}${l.mx ? c.yellow(' mail') : ''}${l.certSeen ? c.red(` cert ${l.certSeen.slice(0, 10)}`) : ''}`);
|
|
940
|
+
if (d.certs.length) {
|
|
941
|
+
out(c.bold(' Certificates naming the brand, last 90 days'));
|
|
942
|
+
for (const x of d.certs.slice(0, 12))
|
|
943
|
+
out(` ${x.firstSeen.slice(0, 10)} ${x.name} ${c.dim(x.issuer)}`);
|
|
944
|
+
}
|
|
945
|
+
out(c.dim(` ${d.note}`));
|
|
946
|
+
printSources(r);
|
|
947
|
+
});
|
|
948
|
+
},
|
|
949
|
+
async honeypot(o, a) {
|
|
950
|
+
const q = String(a.pos[1] ?? '').trim();
|
|
951
|
+
if (!q)
|
|
952
|
+
throw new UsageError('usage: oculon honeypot <token address> [--chain eth|bsc|base]');
|
|
953
|
+
const r = await o.honeypotCheck(q, typeof a.flags.chain === 'string' ? { chain: a.flags.chain } : {});
|
|
954
|
+
emit(a, r, () => {
|
|
955
|
+
const d = r.result;
|
|
956
|
+
const tone = d.verdict === 'honeypot' || d.verdict === 'high risk' ? c.red : d.verdict === 'caution' ? c.yellow : c.green;
|
|
957
|
+
out(`${c.bold(d.symbol ?? d.address)} on ${d.chain} ${tone(d.verdict.toUpperCase())}`);
|
|
958
|
+
out(` buy tax ${d.buyTax ?? '?'}% · sell tax ${d.sellTax ?? '?'}%${d.holders ? ` · ${d.holders.failed} of ${d.holders.checked} recent holders could not sell` : ''}`);
|
|
959
|
+
for (const x of d.reasons)
|
|
960
|
+
out(c.yellow(` ! ${x}`));
|
|
961
|
+
for (const x of d.advice)
|
|
962
|
+
out(` → ${x}`);
|
|
963
|
+
printSources(r);
|
|
964
|
+
});
|
|
965
|
+
},
|
|
966
|
+
async address(o, a) {
|
|
967
|
+
const q = String(a.pos[1] ?? '').trim();
|
|
968
|
+
if (!q)
|
|
969
|
+
throw new UsageError('usage: oculon address <crypto address> [--network robinhood]');
|
|
970
|
+
const r = await o.addressCheck(q, typeof a.flags.network === 'string' ? { network: a.flags.network } : {});
|
|
971
|
+
emit(a, r, () => {
|
|
972
|
+
const d = r.result;
|
|
973
|
+
out(`${c.bold(d.address)} ${d.sanctioned ? c.red('SANCTIONED') : d.warnings.length ? c.yellow('CHECK FIRST') : c.green('NO RED FLAGS')}`);
|
|
974
|
+
out(` ${d.format}${d.network ? ` · ${d.network}` : ''}`);
|
|
975
|
+
if (d.activity)
|
|
976
|
+
out(` ${[d.activity.label, d.activity.balance, d.activity.txCount !== null ? `${d.activity.txCount} transactions` : null, d.activity.isContract ? 'smart contract' : null].filter(Boolean).join(' · ')}`);
|
|
977
|
+
for (const w of d.warnings)
|
|
978
|
+
out(c.yellow(` ! ${w}`));
|
|
979
|
+
for (const x of d.advice)
|
|
980
|
+
out(` → ${x}`);
|
|
981
|
+
printSources(r);
|
|
982
|
+
});
|
|
983
|
+
},
|
|
883
984
|
async satellite(o, a) {
|
|
884
985
|
const r = await o.satellites(a.pos.slice(1).join(' ').trim());
|
|
885
986
|
emit(a, r, () => {
|
|
@@ -1993,6 +2094,7 @@ export const COMMANDS = {
|
|
|
1993
2094
|
allowedChats: (process.env.TELEGRAM_ALLOWED_CHATS ?? '').split(',').map((s) => s.trim()).filter(Boolean),
|
|
1994
2095
|
alertMinScore: Number(process.env.TELEGRAM_ALERT_MIN_SCORE ?? 70),
|
|
1995
2096
|
watchMinutes: 0,
|
|
2097
|
+
scheduleMinutes: Number(a.flags.watch ?? 0),
|
|
1996
2098
|
oculon: o,
|
|
1997
2099
|
log: (m) => log(`telegram ${m}`),
|
|
1998
2100
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal EVM cryptography with no dependencies: keccak256 and secp256k1 public-key recovery, enough to
|
|
3
|
+
* check an Ethereum "personal_sign" signature (Sign-In with Ethereum) and turn it into the signer's address.
|
|
4
|
+
* Plain BigInt arithmetic: slow next to native code, but a sign-in needs one recovery.
|
|
5
|
+
*/
|
|
6
|
+
/** Keccak-256 as used by Ethereum (original Keccak padding, not NIST SHA3-256). */
|
|
7
|
+
export declare function keccak256(data: Uint8Array | string): Uint8Array;
|
|
8
|
+
export declare const toHex: (b: Uint8Array) => string;
|
|
9
|
+
export declare const fromHex: (h: string) => Uint8Array<ArrayBuffer>;
|
|
10
|
+
/** Recover the uncompressed public key (64 bytes, x||y) from a message hash and an (r, s, recovery id) signature. */
|
|
11
|
+
export declare function recoverPublicKey(hash: Uint8Array, r: bigint, s: bigint, recId: number): Uint8Array | null;
|
|
12
|
+
export declare const addressOf: (pub64: Uint8Array) => string;
|
|
13
|
+
/** The address of a private key (used by tests to build signatures). */
|
|
14
|
+
export declare function addressFromPrivateKey(priv: bigint): string;
|
|
15
|
+
/** A 65-byte Ethereum signature (r, s, v) over a 32-byte hash, low-s. `k` must be a fresh random nonce. Tests use it; Oculon never holds keys. */
|
|
16
|
+
export declare function signHash(hash: Uint8Array, priv: bigint, k: bigint): string;
|
|
17
|
+
/** The hash Ethereum wallets sign for personal_sign: keccak256("\x19Ethereum Signed Message:\n" + length + message). */
|
|
18
|
+
export declare function personalHash(message: string): Uint8Array;
|
|
19
|
+
/** The lower-case address that signed a personal_sign message, or null if the signature is malformed. */
|
|
20
|
+
export declare function recoverPersonalSigner(message: string, signature: string): string | null;
|
package/dist/core/evm.js
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal EVM cryptography with no dependencies: keccak256 and secp256k1 public-key recovery, enough to
|
|
3
|
+
* check an Ethereum "personal_sign" signature (Sign-In with Ethereum) and turn it into the signer's address.
|
|
4
|
+
* Plain BigInt arithmetic: slow next to native code, but a sign-in needs one recovery.
|
|
5
|
+
*/
|
|
6
|
+
const M64 = (1n << 64n) - 1n;
|
|
7
|
+
const RC = [
|
|
8
|
+
0x0000000000000001n, 0x0000000000008082n, 0x800000000000808an, 0x8000000080008000n, 0x000000000000808bn, 0x0000000080000001n,
|
|
9
|
+
0x8000000080008081n, 0x8000000000008009n, 0x000000000000008an, 0x0000000000000088n, 0x0000000080008009n, 0x000000008000000an,
|
|
10
|
+
0x000000008000808bn, 0x800000000000008bn, 0x8000000000008089n, 0x8000000000008003n, 0x8000000000008002n, 0x8000000000000080n,
|
|
11
|
+
0x000000000000800an, 0x800000008000000an, 0x8000000080008081n, 0x8000000000008080n, 0x0000000080000001n, 0x8000000080008008n,
|
|
12
|
+
];
|
|
13
|
+
// Rotation offsets r[x][y] of the Keccak specification.
|
|
14
|
+
const ROT = [[0, 36, 3, 41, 18], [1, 44, 10, 45, 2], [62, 6, 43, 15, 61], [28, 55, 25, 21, 56], [27, 20, 39, 8, 14]];
|
|
15
|
+
const rotl = (v, n) => (n === 0 ? v : ((v << BigInt(n)) | (v >> BigInt(64 - n))) & M64);
|
|
16
|
+
function keccakF(A) {
|
|
17
|
+
const C = new Array(5), B = new Array(25);
|
|
18
|
+
for (let round = 0; round < 24; round++) {
|
|
19
|
+
for (let x = 0; x < 5; x++)
|
|
20
|
+
C[x] = A[x] ^ A[x + 5] ^ A[x + 10] ^ A[x + 15] ^ A[x + 20];
|
|
21
|
+
for (let x = 0; x < 5; x++) {
|
|
22
|
+
const d = C[(x + 4) % 5] ^ rotl(C[(x + 1) % 5], 1);
|
|
23
|
+
for (let y = 0; y < 25; y += 5)
|
|
24
|
+
A[x + y] = A[x + y] ^ d;
|
|
25
|
+
}
|
|
26
|
+
for (let x = 0; x < 5; x++)
|
|
27
|
+
for (let y = 0; y < 5; y++)
|
|
28
|
+
B[y + 5 * ((2 * x + 3 * y) % 5)] = rotl(A[x + 5 * y], ROT[x][y]);
|
|
29
|
+
for (let x = 0; x < 5; x++)
|
|
30
|
+
for (let y = 0; y < 25; y += 5)
|
|
31
|
+
A[x + y] = (B[x + y] ^ (~B[((x + 1) % 5) + y] & M64 & B[((x + 2) % 5) + y])) & M64;
|
|
32
|
+
A[0] = A[0] ^ RC[round];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** Keccak-256 as used by Ethereum (original Keccak padding, not NIST SHA3-256). */
|
|
36
|
+
export function keccak256(data) {
|
|
37
|
+
const bytes = typeof data === 'string' ? new TextEncoder().encode(data) : data;
|
|
38
|
+
const rate = 136;
|
|
39
|
+
const padded = new Uint8Array(Math.ceil((bytes.length + 1) / rate) * rate);
|
|
40
|
+
padded.set(bytes);
|
|
41
|
+
padded[bytes.length] = padded[bytes.length] ^ 0x01;
|
|
42
|
+
padded[padded.length - 1] = padded[padded.length - 1] ^ 0x80;
|
|
43
|
+
const A = new Array(25).fill(0n);
|
|
44
|
+
for (let off = 0; off < padded.length; off += rate) {
|
|
45
|
+
for (let i = 0; i < rate / 8; i++) {
|
|
46
|
+
let lane = 0n;
|
|
47
|
+
for (let b = 7; b >= 0; b--)
|
|
48
|
+
lane = (lane << 8n) | BigInt(padded[off + i * 8 + b]);
|
|
49
|
+
A[i] = A[i] ^ lane;
|
|
50
|
+
}
|
|
51
|
+
keccakF(A);
|
|
52
|
+
}
|
|
53
|
+
const out = new Uint8Array(32);
|
|
54
|
+
for (let i = 0; i < 4; i++)
|
|
55
|
+
for (let b = 0; b < 8; b++)
|
|
56
|
+
out[i * 8 + b] = Number((A[i] >> BigInt(8 * b)) & 0xffn);
|
|
57
|
+
return out;
|
|
58
|
+
}
|
|
59
|
+
export const toHex = (b) => [...b].map((x) => x.toString(16).padStart(2, '0')).join('');
|
|
60
|
+
export const fromHex = (h) => { const s = h.replace(/^0x/, ''); if (s.length % 2 || /[^0-9a-f]/i.test(s))
|
|
61
|
+
throw new Error('not hex'); return Uint8Array.from(s.match(/../g) ?? [], (x) => parseInt(x, 16)); };
|
|
62
|
+
// secp256k1
|
|
63
|
+
const P = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2fn;
|
|
64
|
+
const N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n;
|
|
65
|
+
const GX = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798n;
|
|
66
|
+
const GY = 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8n;
|
|
67
|
+
const mod = (a, m) => { const r = a % m; return r < 0n ? r + m : r; };
|
|
68
|
+
function pow(b, e, m) { let r = 1n; b = mod(b, m); while (e > 0n) {
|
|
69
|
+
if (e & 1n)
|
|
70
|
+
r = (r * b) % m;
|
|
71
|
+
b = (b * b) % m;
|
|
72
|
+
e >>= 1n;
|
|
73
|
+
} return r; }
|
|
74
|
+
const inv = (a, m) => pow(a, m - 2n, m);
|
|
75
|
+
function add(p, q) {
|
|
76
|
+
if (!p)
|
|
77
|
+
return q;
|
|
78
|
+
if (!q)
|
|
79
|
+
return p;
|
|
80
|
+
if (p[0] === q[0] && mod(p[1] + q[1], P) === 0n)
|
|
81
|
+
return null;
|
|
82
|
+
const l = p[0] === q[0] && p[1] === q[1] ? mod(3n * p[0] * p[0] * inv(2n * p[1], P), P) : mod((q[1] - p[1]) * inv(mod(q[0] - p[0], P), P), P);
|
|
83
|
+
const x = mod(l * l - p[0] - q[0], P);
|
|
84
|
+
return [x, mod(l * (p[0] - x) - p[1], P)];
|
|
85
|
+
}
|
|
86
|
+
function mul(p, k) { let r = null, q = p; k = mod(k, N); while (k > 0n) {
|
|
87
|
+
if (k & 1n)
|
|
88
|
+
r = add(r, q);
|
|
89
|
+
q = add(q, q);
|
|
90
|
+
k >>= 1n;
|
|
91
|
+
} return r; }
|
|
92
|
+
/** Recover the uncompressed public key (64 bytes, x||y) from a message hash and an (r, s, recovery id) signature. */
|
|
93
|
+
export function recoverPublicKey(hash, r, s, recId) {
|
|
94
|
+
if (r <= 0n || r >= N || s <= 0n || s >= N || recId < 0 || recId > 3)
|
|
95
|
+
return null;
|
|
96
|
+
const x = recId >= 2 ? r + N : r;
|
|
97
|
+
if (x >= P)
|
|
98
|
+
return null;
|
|
99
|
+
const y2 = mod(x * x * x + 7n, P);
|
|
100
|
+
let y = pow(y2, (P + 1n) / 4n, P);
|
|
101
|
+
if (mod(y * y, P) !== y2)
|
|
102
|
+
return null;
|
|
103
|
+
if ((y & 1n) !== BigInt(recId & 1))
|
|
104
|
+
y = P - y;
|
|
105
|
+
const e = BigInt('0x' + toHex(hash)) % N;
|
|
106
|
+
const rInv = inv(r, N);
|
|
107
|
+
const Q = add(mul([x, y], mod(s * rInv, N)), mul([GX, GY], mod(-e * rInv, N)));
|
|
108
|
+
if (!Q)
|
|
109
|
+
return null;
|
|
110
|
+
const out = new Uint8Array(64);
|
|
111
|
+
out.set(fromHex(Q[0].toString(16).padStart(64, '0')), 0);
|
|
112
|
+
out.set(fromHex(Q[1].toString(16).padStart(64, '0')), 32);
|
|
113
|
+
return out;
|
|
114
|
+
}
|
|
115
|
+
export const addressOf = (pub64) => '0x' + toHex(keccak256(pub64).slice(12));
|
|
116
|
+
/** The address of a private key (used by tests to build signatures). */
|
|
117
|
+
export function addressFromPrivateKey(priv) {
|
|
118
|
+
const Q = mul([GX, GY], priv);
|
|
119
|
+
const pub = new Uint8Array(64);
|
|
120
|
+
pub.set(fromHex(Q[0].toString(16).padStart(64, '0')), 0);
|
|
121
|
+
pub.set(fromHex(Q[1].toString(16).padStart(64, '0')), 32);
|
|
122
|
+
return addressOf(pub);
|
|
123
|
+
}
|
|
124
|
+
/** A 65-byte Ethereum signature (r, s, v) over a 32-byte hash, low-s. `k` must be a fresh random nonce. Tests use it; Oculon never holds keys. */
|
|
125
|
+
export function signHash(hash, priv, k) {
|
|
126
|
+
const R = mul([GX, GY], k);
|
|
127
|
+
const r = mod(R[0], N);
|
|
128
|
+
const e = BigInt('0x' + toHex(hash)) % N;
|
|
129
|
+
let s = mod(inv(k, N) * (e + r * priv), N);
|
|
130
|
+
let recId = Number(R[1] & 1n) | (R[0] >= N ? 2 : 0);
|
|
131
|
+
if (s > N / 2n) {
|
|
132
|
+
s = N - s;
|
|
133
|
+
recId ^= 1;
|
|
134
|
+
}
|
|
135
|
+
return '0x' + r.toString(16).padStart(64, '0') + s.toString(16).padStart(64, '0') + (27 + recId).toString(16).padStart(2, '0');
|
|
136
|
+
}
|
|
137
|
+
/** The hash Ethereum wallets sign for personal_sign: keccak256("\x19Ethereum Signed Message:\n" + length + message). */
|
|
138
|
+
export function personalHash(message) {
|
|
139
|
+
const msg = new TextEncoder().encode(message);
|
|
140
|
+
const prefix = new TextEncoder().encode(`\x19Ethereum Signed Message:\n${msg.length}`);
|
|
141
|
+
const all = new Uint8Array(prefix.length + msg.length);
|
|
142
|
+
all.set(prefix);
|
|
143
|
+
all.set(msg, prefix.length);
|
|
144
|
+
return keccak256(all);
|
|
145
|
+
}
|
|
146
|
+
/** The lower-case address that signed a personal_sign message, or null if the signature is malformed. */
|
|
147
|
+
export function recoverPersonalSigner(message, signature) {
|
|
148
|
+
let sig;
|
|
149
|
+
try {
|
|
150
|
+
sig = fromHex(signature);
|
|
151
|
+
}
|
|
152
|
+
catch {
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
if (sig.length !== 65)
|
|
156
|
+
return null;
|
|
157
|
+
const r = BigInt('0x' + toHex(sig.slice(0, 32))), s = BigInt('0x' + toHex(sig.slice(32, 64)));
|
|
158
|
+
let v = sig[64];
|
|
159
|
+
if (v >= 27)
|
|
160
|
+
v -= 27;
|
|
161
|
+
if (s > N / 2n)
|
|
162
|
+
return null; // wallets produce low-s signatures; reject malleated ones
|
|
163
|
+
const pub = recoverPublicKey(personalHash(message), r, s, v);
|
|
164
|
+
return pub ? addressOf(pub) : null;
|
|
165
|
+
}
|
package/dist/core/http.js
CHANGED
|
@@ -3,6 +3,9 @@ import { takeQuota } from './quota.js';
|
|
|
3
3
|
/** Minimum gap between requests per host, following each provider's published guidance. */
|
|
4
4
|
const HOST_GAP_MS = {
|
|
5
5
|
'crt.sh': 2000,
|
|
6
|
+
'api.honeypot.is': 600,
|
|
7
|
+
'mempool.space': 300,
|
|
8
|
+
'api.mainnet-beta.solana.com': 300,
|
|
6
9
|
'api.gdeltproject.org': 5500,
|
|
7
10
|
'export.arxiv.org': 3100,
|
|
8
11
|
'api.github.com': 1500,
|
package/dist/core/quota.js
CHANGED
|
@@ -79,6 +79,9 @@ export const DAILY_BUDGET = {
|
|
|
79
79
|
threatfox: 2000,
|
|
80
80
|
'ransomware-live': 1000,
|
|
81
81
|
'pwned-passwords': 20_000,
|
|
82
|
+
'honeypot-is': 1500, // keyless, be gentle
|
|
83
|
+
'mempool-space': 3000,
|
|
84
|
+
'solana-rpc': 3000, // public RPC, rate limited per IP
|
|
82
85
|
hibp: 200,
|
|
83
86
|
gleif: 3000,
|
|
84
87
|
vies: 1000,
|
package/dist/index.d.ts
CHANGED
|
@@ -250,6 +250,22 @@ export declare class Oculon {
|
|
|
250
250
|
phoneCheck(number: string, opts?: {
|
|
251
251
|
country?: string;
|
|
252
252
|
}): Promise<ModuleResult<import("./modules/phone.js").PhoneCheck>>;
|
|
253
|
+
/** IBAN check, offline: country, length, mod-97 check digits, bank code, and a warning when the account country differs from the supplier's. */
|
|
254
|
+
ibanCheck(iban: string, opts?: {
|
|
255
|
+
country?: string;
|
|
256
|
+
}): Promise<ModuleResult<import("./modules/iban.js").IbanCheck>>;
|
|
257
|
+
/** Raw email headers: SPF, DKIM and DMARC results, the delivery path, the origin IP and spoofing signs. */
|
|
258
|
+
headerCheck(rawHeaders: string): Promise<ModuleResult<import("./modules/headers.js").HeaderReport>>;
|
|
259
|
+
/** Lookalike domains of a brand that exist in DNS, and new certificates naming the brand (crt.sh). */
|
|
260
|
+
lookalikes(domain: string): Promise<ModuleResult<import("./modules/lookalike.js").LookalikeReport>>;
|
|
261
|
+
/** Can this token be sold? Buy and sell simulation with taxes (honeypot.is): Ethereum, BNB Chain, Base. */
|
|
262
|
+
honeypotCheck(address: string, opts?: {
|
|
263
|
+
chain?: string;
|
|
264
|
+
}): Promise<ModuleResult<import("./modules/honeypot.js").HoneypotReport>>;
|
|
265
|
+
/** Crypto address without keys: chain from format, OFAC sanctions, balance and activity from free explorers. */
|
|
266
|
+
addressCheck(address: string, opts?: {
|
|
267
|
+
network?: string;
|
|
268
|
+
}): Promise<ModuleResult<import("./modules/address.js").AddressReport>>;
|
|
253
269
|
/** Satellites: launches of the last 30 days, or one object's orbit, owner and status (CelesTrak). */
|
|
254
270
|
satellites(query?: string): Promise<ModuleResult<import("./modules/satellites.js").SatResult>>;
|
|
255
271
|
/** Airport status: METAR and TAF, FAA delays and ground stops (US), emergency squawks nearby. */
|
package/dist/index.js
CHANGED
|
@@ -69,6 +69,11 @@ import { ransomware } from './modules/ransomware.js';
|
|
|
69
69
|
import { companyCheck } from './modules/company.js';
|
|
70
70
|
import { breaches, passwordCheck, pwnedRange } from './modules/breach.js';
|
|
71
71
|
import { phoneCheck } from './modules/phone.js';
|
|
72
|
+
import { ibanCheck } from './modules/iban.js';
|
|
73
|
+
import { headerCheck } from './modules/headers.js';
|
|
74
|
+
import { lookalikes } from './modules/lookalike.js';
|
|
75
|
+
import { honeypotCheck } from './modules/honeypot.js';
|
|
76
|
+
import { addressCheck } from './modules/address.js';
|
|
72
77
|
import { satellites } from './modules/satellites.js';
|
|
73
78
|
export class Oculon {
|
|
74
79
|
ctx;
|
|
@@ -391,6 +396,26 @@ export class Oculon {
|
|
|
391
396
|
phoneCheck(number, opts = {}) {
|
|
392
397
|
return phoneCheck(this.ctx, number, opts);
|
|
393
398
|
}
|
|
399
|
+
/** IBAN check, offline: country, length, mod-97 check digits, bank code, and a warning when the account country differs from the supplier's. */
|
|
400
|
+
ibanCheck(iban, opts = {}) {
|
|
401
|
+
return ibanCheck(this.ctx, iban, opts);
|
|
402
|
+
}
|
|
403
|
+
/** Raw email headers: SPF, DKIM and DMARC results, the delivery path, the origin IP and spoofing signs. */
|
|
404
|
+
headerCheck(rawHeaders) {
|
|
405
|
+
return headerCheck(this.ctx, rawHeaders);
|
|
406
|
+
}
|
|
407
|
+
/** Lookalike domains of a brand that exist in DNS, and new certificates naming the brand (crt.sh). */
|
|
408
|
+
lookalikes(domain) {
|
|
409
|
+
return lookalikes(this.ctx, domain);
|
|
410
|
+
}
|
|
411
|
+
/** Can this token be sold? Buy and sell simulation with taxes (honeypot.is): Ethereum, BNB Chain, Base. */
|
|
412
|
+
honeypotCheck(address, opts = {}) {
|
|
413
|
+
return honeypotCheck(this.ctx, address, opts);
|
|
414
|
+
}
|
|
415
|
+
/** Crypto address without keys: chain from format, OFAC sanctions, balance and activity from free explorers. */
|
|
416
|
+
addressCheck(address, opts = {}) {
|
|
417
|
+
return addressCheck(this.ctx, address, opts);
|
|
418
|
+
}
|
|
394
419
|
/** Satellites: launches of the last 30 days, or one object's orbit, owner and status (CelesTrak). */
|
|
395
420
|
satellites(query = '') {
|
|
396
421
|
return satellites(this.ctx, query);
|
package/dist/mcp.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createInterface } from 'node:readline';
|
|
|
7
7
|
import { Oculon, summarizeProvenance } from './index.js';
|
|
8
8
|
import { ONCHAIN_TOOLS, onchainEnabled } from './core/features.js';
|
|
9
9
|
import { availableKinds } from './modules/monitor.js';
|
|
10
|
-
export const SERVER_INFO = { name: 'oculon', version: '0.1.
|
|
10
|
+
export const SERVER_INFO = { name: 'oculon', version: '0.1.6' };
|
|
11
11
|
const SUPPORTED = ['2025-06-18', '2025-03-26', '2024-11-05'];
|
|
12
12
|
const str = (d) => ({ type: 'string', description: d });
|
|
13
13
|
const num = (d) => ({ type: 'number', description: d });
|
|
@@ -297,6 +297,36 @@ export const TOOLS = [
|
|
|
297
297
|
inputSchema: schema({ number: str('Phone number'), country: str('ISO country code for a national number, e.g. "US"') }, ['number']),
|
|
298
298
|
run: async (o, a) => compact(await o.phoneCheck(String(a.number), a.country ? { country: String(a.country) } : {})),
|
|
299
299
|
},
|
|
300
|
+
{
|
|
301
|
+
name: 'oculon_iban_check',
|
|
302
|
+
description: 'Check an IBAN before paying an invoice, fully offline: country, length, ISO 13616 mod-97 check digits and the bank code. Pass the supplier country to flag an account held in another country, a common sign of invoice fraud. A valid IBAN does not prove who owns the account.',
|
|
303
|
+
inputSchema: schema({ iban: str('The IBAN, spaces allowed'), country: str('Optional: the supplier\'s ISO country code, e.g. "NL"') }, ['iban']),
|
|
304
|
+
run: async (o, a) => compact(await o.ibanCheck(String(a.iban), a.country ? { country: String(a.country) } : {})),
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: 'oculon_email_headers',
|
|
308
|
+
description: 'Analyze the raw headers of a suspicious email: SPF, DKIM and DMARC results recorded by the receiving server, the Received path, the origin IP and its country, and spoofing signs (From differs from the envelope sender, Reply-To elsewhere, a display name posing as an address). Returns a verdict and risk.',
|
|
309
|
+
inputSchema: schema({ headers: str('The raw message headers, as shown by "Show original"') }, ['headers']),
|
|
310
|
+
run: async (o, a) => compact(await o.headerCheck(String(a.headers))),
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: 'oculon_lookalike_domains',
|
|
314
|
+
description: 'Find lookalike domains of a brand that a phisher could use: typos, swapped letters, homoglyphs, extra words and other endings that exist in DNS (with mail servers), plus certificates issued in the last 90 days for any name containing the brand (Certificate Transparency).',
|
|
315
|
+
inputSchema: schema({ domain: str('The real domain, e.g. "example.com"') }, ['domain']),
|
|
316
|
+
run: async (o, a) => compact(await o.lookalikes(String(a.domain))),
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
name: 'oculon_honeypot_check',
|
|
320
|
+
description: 'Can this token be sold? Simulates a buy and a sell on the token\'s main pool and replays recent holders\' sells (honeypot.is): honeypot verdict, buy and sell tax, holders who could not sell, unpublished or upgradeable contracts. Chains: eth, bsc, base.',
|
|
321
|
+
inputSchema: schema({ address: str('Token contract address (0x...)'), chain: str('eth, bsc or base (default eth)') }, ['address']),
|
|
322
|
+
run: async (o, a) => compact(await o.honeypotCheck(String(a.address), a.chain ? { chain: String(a.chain) } : {})),
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: 'oculon_address_check',
|
|
326
|
+
description: 'Check a crypto address before sending funds, without API keys: chain from the address format (Bitcoin, EVM, Solana, Tron), US OFAC sanctions, and balance, transaction count and labels from free explorers (mempool.space, Blockscout, Solana RPC). Flags unused addresses and contracts posing as wallets.',
|
|
327
|
+
inputSchema: schema({ address: str('Crypto address'), network: str('Optional for 0x addresses: "robinhood" for Robinhood Chain, default Ethereum') }, ['address']),
|
|
328
|
+
run: async (o, a) => compact(await o.addressCheck(String(a.address), a.network ? { network: String(a.network) } : {})),
|
|
329
|
+
},
|
|
300
330
|
{
|
|
301
331
|
name: 'oculon_satellites',
|
|
302
332
|
description: 'Satellites from CelesTrak. Leave query empty for everything launched in the last 30 days, grouped by launch. Or pass a satellite name ("ISS", "starlink-1007") or NORAD catalog number for its orbit (perigee, apogee, period, inclination, regime), owner, launch date and status.',
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Crypto address check without API keys: which chain the address belongs to (from its format), whether it is
|
|
3
|
+
* on the US OFAC sanctions list, and its age, balance and activity from free explorers (mempool.space for
|
|
4
|
+
* Bitcoin, Blockscout for Ethereum and Robinhood Chain, the public Solana RPC). Useful before you send
|
|
5
|
+
* funds to an address someone gave you in a chat.
|
|
6
|
+
*/
|
|
7
|
+
import type { Ctx } from '../core/context.js';
|
|
8
|
+
import type { ModuleResult } from '../core/types.js';
|
|
9
|
+
export interface AddressReport {
|
|
10
|
+
address: string;
|
|
11
|
+
chain: 'bitcoin' | 'evm' | 'solana' | 'tron' | 'unknown';
|
|
12
|
+
format: string;
|
|
13
|
+
network: string | null;
|
|
14
|
+
activity: {
|
|
15
|
+
txCount: number | null;
|
|
16
|
+
balance: string | null;
|
|
17
|
+
firstSeen: string | null;
|
|
18
|
+
isContract: boolean | null;
|
|
19
|
+
label: string | null;
|
|
20
|
+
} | null;
|
|
21
|
+
sanctioned: boolean | null;
|
|
22
|
+
sanctionHits: string[];
|
|
23
|
+
warnings: string[];
|
|
24
|
+
advice: string[];
|
|
25
|
+
}
|
|
26
|
+
export declare function detectChain(a: string): {
|
|
27
|
+
chain: AddressReport['chain'];
|
|
28
|
+
format: string;
|
|
29
|
+
};
|
|
30
|
+
export declare function addressCheck(ctx: Ctx, input: string, opts?: {
|
|
31
|
+
network?: string;
|
|
32
|
+
}): Promise<ModuleResult<AddressReport>>;
|