Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<meta name="twitter:title" content="Darknode — Find the real risks in your domain, code and cloud">
<meta name="twitter:description" content="Free domain security check in seconds, no sign-up. Then find real vulnerabilities in your code, dependencies and cloud, ranked by what attackers exploit now.">
<meta name="twitter:image" content="https://darknode.ai/og.png">
<script type="application/ld+json">{"@context": "https://schema.org", "@graph": [{"@type": "WebSite", "@id": "https://darknode.ai/#website", "url": "https://darknode.ai/", "name": "Darknode", "description": "Darknode checks your domain, code, dependencies and cloud configuration for real vulnerabilities and risks, ranks them by live exploitation data (CISA KEV and FIRST EPSS) and gives a concrete fix for each, with a free domain security check that needs no sign-up.", "publisher": {"@id": "https://darknode.ai/#org"}}, {"@type": "Organization", "@id": "https://darknode.ai/#org", "name": "Darknode", "url": "https://darknode.ai/", "logo": "https://darknode.ai/logo-dark.svg", "description": "Darknode checks your domain, code, dependencies and cloud configuration for real vulnerabilities and risks, ranks them by live exploitation data (CISA KEV and FIRST EPSS) and gives a concrete fix for each, with a free domain security check that needs no sign-up.", "sameAs": ["https://github.com/Darknode-Official"]}, {"@type": "WebApplication", "@id": "https://darknode.ai/#app", "name": "Darknode", "url": "https://darknode.ai/", "applicationCategory": "SecurityApplication", "operatingSystem": "Web", "description": "Darknode checks your domain, code, dependencies and cloud configuration for real vulnerabilities and risks, ranks them by live exploitation data (CISA KEV and FIRST EPSS) and gives a concrete fix for each, with a free domain security check that needs no sign-up.", "featureList": ["Free domain security check with a transparent A-F grade: email authentication, HTTPS, certificate expiry, security headers, DNSSEC, CAA and security.txt", "Domain watch with email alerts for certificate expiry and email/DNS changes", "Code, secrets and dependency scanning", "Cloud and infrastructure-as-code checks", "Attack surface discovery", "Vulnerability intelligence (NVD, CISA KEV, FIRST EPSS)", "Compliance framework mapping", "Security graph, findings and reports", "AI security assistant"], "offers": {"@type": "Offer", "price": "0", "priceCurrency": "USD"}, "publisher": {"@id": "https://darknode.ai/#org"}}, {"@type": "SoftwareApplication", "name": "Nexus", "alternateName": "Darknode Nexus", "url": "https://darknode.ai/nexus", "applicationCategory": "DeveloperApplication", "operatingSystem": "Windows, macOS, Linux", "description": "Nexus is Darknode's terminal coding agent: one interface over six AI engines (Claude Code, the Gemini CLI, Codex, OpenCode, Aider and local Ollama models), shipped in the Darknode CLI.", "offers": {"@type": "Offer", "price": "0", "priceCurrency": "USD"}, "publisher": {"@id": "https://darknode.ai/#org"}}]}</script>
<script type="application/ld+json">{"@context": "https://schema.org", "@graph": [{"@type": "WebSite", "@id": "https://darknode.ai/#website", "url": "https://darknode.ai/", "name": "Darknode", "description": "Darknode checks your domain, code, dependencies and cloud configuration for real vulnerabilities and risks, ranks them by live exploitation data (CISA KEV and FIRST EPSS) and gives a concrete fix for each, with a free domain security check that needs no sign-up.", "publisher": {"@id": "https://darknode.ai/#org"}}, {"@type": "Organization", "@id": "https://darknode.ai/#org", "name": "Darknode", "url": "https://darknode.ai/", "logo": "https://darknode.ai/logo-dark.svg", "description": "Darknode checks your domain, code, dependencies and cloud configuration for real vulnerabilities and risks, ranks them by live exploitation data (CISA KEV and FIRST EPSS) and gives a concrete fix for each, with a free domain security check that needs no sign-up.", "sameAs": ["https://github.com/Darknode-Official"]}, {"@type": "WebApplication", "@id": "https://darknode.ai/#app", "name": "Darknode", "url": "https://darknode.ai/", "applicationCategory": "SecurityApplication", "operatingSystem": "Web", "description": "Darknode checks your domain, code, dependencies and cloud configuration for real vulnerabilities and risks, ranks them by live exploitation data (CISA KEV and FIRST EPSS) and gives a concrete fix for each, with a free domain security check that needs no sign-up.", "featureList": ["Free domain security check with a transparent A-F grade: email authentication, HTTPS, certificate expiry, security headers, DNSSEC, CAA and security.txt", "Domain watch with email alerts for certificate and registration expiry, email/DNS changes and website security regressions", "Code, secrets and dependency scanning", "Cloud and infrastructure-as-code checks", "Attack surface discovery", "Vulnerability intelligence (NVD, CISA KEV, FIRST EPSS)", "Compliance framework mapping", "Security graph, findings and reports", "AI security assistant"], "offers": {"@type": "Offer", "price": "0", "priceCurrency": "USD"}, "publisher": {"@id": "https://darknode.ai/#org"}}, {"@type": "SoftwareApplication", "name": "Nexus", "alternateName": "Darknode Nexus", "url": "https://darknode.ai/nexus", "applicationCategory": "DeveloperApplication", "operatingSystem": "Windows, macOS, Linux", "description": "Nexus is Darknode's terminal coding agent: one interface over six AI engines (Claude Code, the Gemini CLI, Codex, OpenCode, Aider and local Ollama models), shipped in the Darknode CLI.", "offers": {"@type": "Offer", "price": "0", "priceCurrency": "USD"}, "publisher": {"@id": "https://darknode.ai/#org"}}]}</script>
<!-- The Firebase SDK on gstatic is on the boot path, so it gets a full preconnect and the
three modules we import are preloaded; cdnjs/jsdelivr are used only by lazy tabs. -->
<link rel="preconnect" href="https://www.gstatic.com" crossorigin>
Expand Down
15 changes: 6 additions & 9 deletions public/js/check/first-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// never for a free-mail provider or a Test Mode / guest identity.
//
// Once a check has run, "Watch this domain" sets up the Free plan's one-domain watch: a
// certificate-expiry and an email/DNS monitor on that domain, checked once a day, alerting by
// certificate, domain-registration, email/DNS and website monitor on that domain, checked once a day, alerting by
// email to the account's own verified address (the Worker takes the address from the sign-in
// token and enforces the one-domain limit, worker/free-watch.js).

Expand Down Expand Up @@ -63,8 +63,6 @@ function paint() {
}

// ---- "Watch this domain" -------------------------------------------------------------------
const WATCH_TYPES = ["cert-expiry", "email-posture"];
const DAY = 86400000;
const isFree = () => { const t = S.ctx && S.ctx.tier; return !t || t === "free"; };
const hostsOf = (m) => ((m && m.config && m.config.domains) || []).map((d) => normalizeDomain(d)).filter(Boolean);
const goBtn = (act, label) => `<button type="button" class="dk-tibtn" data-fr-go="${act}">${label}</button>`;
Expand All @@ -73,14 +71,14 @@ function watchHtml() {
const d = S.res.domain, w = S.watch && S.watch.domain === d ? S.watch : null;
if (!w || w.state === "busy") {
const busy = !!w;
return `<div class="dk-fr-wtx"><b>Watch ${esc(d)}</b><br>Get an email when its certificate is close to expiry, or when an email or DNS record (SPF, DMARC, MX, CAA) is removed or weakened. Checked once a day${isFree() ? ". The Free plan watches one domain" : ""}.</div>
return `<div class="dk-fr-wtx"><b>Watch ${esc(d)}</b><br>Get an email before its certificate or its domain registration expires, when an email or DNS record (SPF, DMARC, MX, CAA) is removed or weakened, and when the website loses a security header or exposes its .git or .env. Checked once a day${isFree() ? ". The Free plan watches one domain" : ""}.</div>
<div class="dk-fr-wbtns"><button type="button" class="dk-tibtn on" data-fr-watch="1"${busy ? " disabled" : ""}>${busy ? "Setting up…" : "Watch this domain"}</button></div>`;
}
if (w.state === "on") {
const where = w.to ? `Alerts go by email to <b>${esc(w.to)}</b>, at most 5 emails a day.` : w.emailAll ? "Alerts go by email to your account address, at most 5 emails a day." : "Alerts go to the channels set on each monitor.";
const head = w.paused ? `The watch on ${esc(d)} is turned off.` : (w.already ? "Already watching " : "Watching ") + esc(d) + ".";
const body = w.paused ? "Turn it back on under Monitors to check its certificate and email/DNS records once a day."
: `Its certificate (expiry within 21 days) and its email/DNS records (SPF, DMARC, MX, CAA) are checked once a day. ${where} Turn the watch off any time under Monitors.`;
const body = w.paused ? "Turn it back on under Monitors to check it once a day."
: `Its certificate (expiry within 21 days), its domain registration (expiry within 30 days, transfer lock), its email and DNS records (SPF, DMARC, MX, CAA) and its website (HTTPS, security headers, an exposed .git or .env) are checked once a day. ${where} Turn the watch off any time under Monitors.`;
return `<div class="dk-fr-wtx"><b>${head}</b> ${body}</div><div class="dk-fr-wbtns">${goBtn("monitors", "Open Monitors")}</div>`;
}
if (w.state === "guest") {
Expand All @@ -103,7 +101,7 @@ async function watchDomain() {
if (isTestIdentity(S.ctx && S.ctx.user)) return set({ state: "guest" });
set({ state: "busy" });
try {
const { monitorApi } = await import("/js/deck/monitor-client.js?v=1");
const { monitorApi, WATCH_TYPES, watchMonitor } = await import("/js/deck/monitor-client.js?v=1");
// the Free watch lives in the caller's own workspace, whichever one is active
const opts = { personal: free };
const mons = ((await monitorApi({ op: "list" }, opts)) || {}).monitors || [];
Expand All @@ -115,8 +113,7 @@ async function watchDomain() {
const made = [];
for (const type of WATCH_TYPES) {
if (mine.some((m) => m.type === type)) continue;
const monitor = { name: (type === "cert-expiry" ? "Certificate: " : "Email and DNS: ") + domain, type, config: type === "cert-expiry" ? { domains: [domain], warnDays: 21 } : { domains: [domain] }, intervalMs: DAY, channels: [{ type: "email" }] };
const r = await monitorApi({ op: "upsert", monitor }, opts);
const r = await monitorApi({ op: "upsert", monitor: watchMonitor(type, domain) }, opts);
if (r && r.monitor) made.push(r.monitor);
}
const all = mine.concat(made);
Expand Down
2 changes: 1 addition & 1 deletion public/js/core/entitlements.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const FEATURES = {
export const LIMITS = {
seats: { free: 1, pro: 1, team: 25, enterprise: -1 },
workspaces: { free: 1, pro: 1, team: 5, enterprise: -1 },
// domains a Free account may watch for certificate expiry and email/DNS changes, with
// domains a Free account may watch for its certificate, registration, email/DNS records and website, with
// alerts by email (worker/free-watch.js enforces it); Pro and above have no domain cap
watchDomains: { free: 1, pro: -1, team: -1, enterprise: -1 },
};
Expand Down
2 changes: 1 addition & 1 deletion public/js/deck-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -4252,7 +4252,7 @@ export function renderDeck(host, opts) {
const PLANS = [
{ id: "free", name: "Free", price: "$0", unit: "forever", tag: "", a: "#2552c6",
blurb: "Quick checks, the live feed and the assistant, for individuals and evaluation.",
feats: ["Free browser tools in the Tool Library", "Quick Checks: email security, headers, certificates, DNS, breaches, CVEs", "Personal space: domain, link, secret and data checks", "Live vulnerability feed (CVE and known-exploited)", "Local-only security graph & case files", "Watch 1 domain: certificate expiry and email/DNS changes, alerts by email", "Darknode AI assistant: 50 messages a day", "1 workspace, 1 seat"],
feats: ["Free browser tools in the Tool Library", "Quick Checks: email security, headers, certificates, DNS, breaches, CVEs", "Personal space: domain, link, secret and data checks", "Live vulnerability feed (CVE and known-exploited)", "Local-only security graph & case files", "Watch 1 domain: certificate, registration, email/DNS and website changes, alerts by email", "Darknode AI assistant: 50 messages a day", "1 workspace, 1 seat"],
cta: "Current plan", cur: true },
{ id: "pro", name: "Pro", price: "$29", unit: "per user / month", tag: "Recommended", a: "#2552c6",
blurb: "For professionals who need history, exports and the strongest AI models.",
Expand Down
10 changes: 10 additions & 0 deletions public/js/deck/monitor-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ export async function monitorApi(body, opts = {}) {
if (!r.ok) throw Object.assign(new Error(j.error || ("Monitor request failed (" + r.status + ")")), { status: r.status, plan: j.plan === true });
return j;
}

// The domain watch: one daily monitor per check type, alerting by email. Free accounts get
// exactly this for one domain (worker/free-watch.js FREE_WATCH.types).
export const WATCH_TYPES = ["cert-expiry", "email-posture", "domain-expiry", "web-posture"];
export const WATCH_NAME = { "cert-expiry": "Certificate", "email-posture": "Email and DNS", "domain-expiry": "Domain registration", "web-posture": "Website" };
export const watchMonitor = (type, domain) => ({
name: WATCH_NAME[type] + ": " + domain, type,
config: type === "cert-expiry" ? { domains: [domain], warnDays: 21 } : type === "domain-expiry" ? { domains: [domain], warnDays: 30 } : { domains: [domain] },
intervalMs: 86400000, channels: [{ type: "email" }],
});
Loading
Loading