Back to skill

Security audit

Calendar Extractor

Security checks for vulnerabilities and agentic risk

Overview

This skill’s transcript access and calendar updates fit its stated purpose, with disclosed automatic processing and user confirmation controls.

Use this within HiJavis, where enabling it permits automatic analysis of completed recordings and typed inputs. Review new events with Confirm or Discard; correcting a card in chat also confirms it. Supply the card’s timezone to avoid an extra transcript lookup. Runtime code was independently reviewed despite partial scanner coverage, but the separate app and server controls were not verified.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
Findings (25)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 27)May include surrounding context.

md
fier, no route matching. This skill's own agent decides for itself, using this `SKILL.md`, whether the unit is worth acting on; if not, it does nothing (see "Ho

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 218)May include surrounding context.

md
agent decides for itself, using this `SKILL.md`, whether the unit is worth acting

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 38)May include surrounding context.

md
node scripts/calendar-extractor.js fetch [--hours N] [--limit N]

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 41)May include surrounding context.

md
node scripts/calendar-extractor.js fetch --session <sessionId> [--hours N] # audio unit

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 42)May include surrounding context.

md
node scripts/calendar-extractor.js fetch --kbd-input <inputId> [--hours N] # keyboard unit

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 45)May include surrounding context.

md
echo '<events-json-array>' | node scripts/calendar-extractor.js push

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 48)May include surrounding context.

md
node scripts/calendar-extractor.js anchor # optional: --tz <IANA> for the card's calendar zone

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 51)May include surrounding context.

md
echo '{"dedup_key":"<verbatim>","patch":{...}}' | node scripts/calendar-extractor.js update

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 55)May include surrounding context.

md
node scripts/calendar-extractor.js <userId> fetch

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 56)May include surrounding context.

md
echo '<events-json-array>' | node scripts/calendar-extractor.js <userId> push

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 57)May include surrounding context.

md
node scripts/calendar-extractor.js <userId> anchor

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 58)May include surrounding context.

md
echo '{"dedup_key":"<verbatim>","patch":{...}}' | node scripts/calendar-extractor.js <userId> update

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 67)May include surrounding context.

md
1. **Fetch** — `node scripts/calendar-extractor.js <userId> fetch` issues

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 86)May include surrounding context.

md
3. **Push** — pipe the events array into `node scripts/calendar-extractor.js <userId> push`. The script:

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 135)May include surrounding context.

md
2. **Run `anchor` for a fresh "now".** `node scripts/calendar-extractor.js anchor`

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 183)May include surrounding context.

md
}' | node scripts/calendar-extractor.js update

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 54)May include surrounding context.

md
node scripts/register.js <userId> <name>

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 295)May include surrounding context.

md
- **User IDs** only allow letters, digits, `-`, `_` (path-traversal guard in `data.js`).

Memory Manipulation

High
Category
Memory Poisoning
Confidence
90% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · scripts/calendar-extractor.js (reported line 145)May include surrounding context.

js
try {
    return readJson(p);
  } catch (e) {
    // A truncated/corrupt state file (e.g. a kill mid-write before the atomic
    // rename landed, on an older volume) must not brick every future run.
    // `seen` is best-effort dedup state, so start fresh.
    console.error(`⚠️ state file unreadable, starting fresh: ${e.message}`);

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · test/data.test.js (reported line 25)May include surrounding context.

js
}

test('sanitizeId rejects path-traversal userIds (exits non-zero)', () => {
  for (const bad of ['../etc/passwd', '..', 'a/../../b', 'foo/bar']) {
    const r = runGuard(`d.sanitizeId(${JSON.stringify(bad)})`);
    assert.notEqual(r.status, 0, `"${bad}" must be rejected`);
    assert.match(r.stderr, /Invalid userId/);

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · test/data.test.js (reported line 37)May include surrounding context.

js
// that passes it can ever reach this branch via the CLI — it is a second layer.
// We feed an escaping id straight to safeUserPath and assert the non-zero exit.
test('safeUserPath rejects an id whose resolved path escapes data/users/ (exits non-zero)', () => {
  for (const escaping of ['../../etc/passwd', '../outside']) {
    const r = runGuard(`d.safeUserPath(${JSON.stringify(escaping)})`);
    assert.notEqual(r.status, 0, `"${escaping}" must be rejected by safeUserPath`);
    assert.match(r.stderr, /Illegal path/);

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

Scanner excerpt · test/update.test.js (reported line 460)May include surrounding context.

js
try {
    const tz = await resolveUserTz({ explicitTz: 'America/Los_Angeles' });
    assert.equal(tz, 'America/Los_Angeles');
    assert.equal(errs.length, 0, 'no warning when a real zone is found');
  } finally {
    console.error = origErr;
  }

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · SKILL.md (reported line 50)May include surrounding context.

md
# anchor — print the CURRENT relative-date anchor (resolve "today / 6 pm / tomorrow" on an edit turn)
node scripts/calendar-extractor.js anchor            # optional: --tz <IANA> for the card's calendar zone

# update — edit ONE pushed card in place (verbatim dedup_key, full merged patch, auto-confirm)
echo '{"dedup_key":"<verbatim>","patch":{...}}' | node scripts/calendar-extractor.js update

# Optional: explicit userId / multi-profile (back-compat — prepend the ID)

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · SKILL.md (reported line 192)May include surrounding context.

md
as **naive-local** wall-clock (no `Z`/offset), does **no `seen`-dedup
   filtering**, and does **not** call `/api/agent/push`.

**Auto-confirm semantics.** Stating the corrected value in chat *is* the
confirmation: the upsert's `status: "confirmed"` flips the row `pending →
confirmed` **atomically with the field write** (strictly that direction —
confirmed never downgrades). The skill never calls a separate `/confirm`

The anchor command fetches recent transcripts despite explicitly documenting that it performs no transcript fetch.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

When no explicit timezone is supplied, anchor calls resolveUserTz, which retrieves recent transcripts merely to read the response's timezone field. This unnecessarily brings sensitive transcript data into a clock-only operation despite its no-transcript-fetch documentation; however, the shown code neither outputs those transcripts nor sends them to an unrelated destination.

Content

No source excerpt is available for this finding.