Grades are a hygiene check, not a security guarantee.

MCP, MCP server

Kiwi Mem

🥝 Self-hosted memory gateway for AI companions — OpenAI-compatible proxy with vector search, memory heat, Dream consolidation and calendar-level summaries · AI 伴侣记忆网关:向量搜索、记忆热度、Dream 睡眠整合、日历层级摘要,任何客户端都能接

Compatibility: Not stated.

Grade D

Two or more Medium findings, or a High finding. Only try it in a sandbox.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

Rescanned at commit b01a0c506f4f, unchanged since the check below.

INSTALL_REMOTE_SCRIPT OBFUSCATION_MINIFIED_PAYLOAD

Why this grade

  • INSTALL_REMOTE_SCRIPT Medium

    Fetches a script from the network and runs it (a pipe to a shell, or an install hook with a URL).

    scripts/update.sh, line 191 die "找不到 docker compose 命令。先装 Docker:curl -fsSL https://get.docker.com | sh"

  • OBFUSCATION_MINIFIED_PAYLOAD Medium

    Contains a very long line with almost no spaces in a script or style file.

    database.py, line 1 """

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

If you think this grade is wrong, email [email protected] with the entry link and your evidence. We aim to acknowledge within two working days and decide within seven. If we confirm an error, we aim to correct it within 24 hours of confirming it. These are aims, not guarantees.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Concern

    can delete files.

    PERMISSION_DELETE_FILES

    scripts/kiwi_prep_01_knives.py, line 31

    ef dotenv(key):',"def dotenv(key):\n subprocess.run(['sh', '-c', '. ./.env'], stdout=subpro

    scripts/kiwi_prep_01_knives.py, line 57

    return subprocess.run(args,cwd=ROOT,env=env,text=True,encoding='utf-8',errors='replace',stdout=subprocess.PIPE,stderr=subprocess.STDOUT,timeout=240)

    scripts/kiwi_prep_01_knives.py, line 61

    if subprocess.check_output(['git','status','--porcelain'],cwd=ROOT,text=True).strip():

    Show more

    scripts/kiwi_prep_01_knives.py, line 89

    head=subprocess.check_output(['git','rev-parse','HEAD'],cwd=ROOT,text=True).strip()

    scripts/kiwi_prep_01_knives.py, line 91

    blobs={p:subprocess.check_output(['git','rev-parse',head+':'+p],cwd=ROOT,text=True).strip() for p in files}

    scripts/prep_update_fixture.py, line 18

    head=subprocess.check_output(['git','rev-parse','HEAD'],text=True).strip()

    scripts/prep_update_fixture.py, line 97

    return subprocess.check_output(['git','-c','safe.directory='+str(cwd),

    scripts/prep_update_fixture.py, line 131

    process=subprocess.Popen(command,cwd=self.repo,env=self.env,stdin=inp,stdout=out,stderr=subprocess.STDOUT,start_new_session=os.name!='nt')

    scripts/w2_04_knives.py, line 427

    shutil.rmtree(work, ignore_errors=True)

  • Install and update

    Serious

    install fetches a script from the network.

    INSTALL_REMOTE_SCRIPT

    README.md, line 153

    curl -fsSL https://get.docker.com | sh

    scripts/update.sh, line 191

    die "找不到 docker compose 命令。先装 Docker:curl -fsSL https://get.docker.com | sh"

    requirements.txt, line 6

    mcp>=1.8.0

  • Network

    Concern

    can reach a host that is not written as a fixed address.

    NETWORK_NO_FIXED_HOST

    config.py, line 205

    rows = await conn.fetch("SELECT key, value FROM gateway_config")

    daily_digest.py, line 127

    fragments = await conn.fetch("""

    daily_digest.py, line 562

    rows = await conn.fetch("""

    Show more

    daily_digest.py, line 625

    rows = await conn.fetch("""

    daily_digest.py, line 822

    candidates = await conn.fetch("""

    daily_digest.py, line 1391

    fragments = await conn.fetch("""

    admin-panel/js/api.js, line 17

    return fetch(API + path, opts);

    admin-panel/js/api.js, line 61

    const res = await fetch(API + path, {

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    daily_digest.py, line 21

    MEMORY_API_KEY = os.getenv("MEMORY_API_KEY", "") or os.getenv("API_KEY", "")

    dream.py, line 24

    MEMORY_API_KEY = os.getenv("MEMORY_API_KEY", "") or os.getenv("API_KEY", "")

    mcp_access.py, line 128

    print('预告:下一大版本起 MCP 只接受登记过的访问地址(本机与 IP 直连无需登记);用域名访问 MCP 请先在 .env 登记 MCP_ALLOWED_HOSTS / MCP_ALLOWED_ORIGINS,见 docs/UPGRADING.md')

    Show more

    mcp_server.py, line 30

    MCP_AUTH_TOKEN = os.getenv("MCP_AUTH_TOKEN", "")

    memory_extractor.py, line 15

    API_KEY = os.getenv("MEMORY_API_KEY", "") or os.getenv("API_KEY", "")

    scripts/kiwi_prep_01_knives.py, line 31

    ):\n subprocess.run(['sh', '-c', '. ./.env'], stdout=subprocess.DEVNULL, stderr=su

    scripts/prep_update_fixture.py, line 85

    (self.source/'.gitignore').write_text('.env\n.update-state.json\nbackups/\n')

    scripts/prep_update_fixture.py, line 91

    (self.repo/'.env').write_text('PORT=8080\n',encoding='utf-8')

    scripts/test_kiwi_prep_01.py, line 286

    (f.repo/'.env').write_text('MCP_ALLOWED_HOSTS=$(touch "'+sentinel.as_posix()+'")\n')

    scripts/test_kiwi_prep_01.py, line 291

    (f.repo/'.env').write_text('MCP_ALLOWED_HOSTS="[2001:db8::1]:*"\r\n')

    scripts/test_kiwi_prep_01.py, line 329

    (f.repo/'.env').write_bytes(raw)

    scripts/test_kiwi_prep_01.py, line 351

    programs=[re.search(r"PORT_FALLBACK=\"\$\((?:LC_ALL=C )?awk '(.*?)' \.env",scripts[0],re.S),

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Concern

    contains a minified payload.

    OBFUSCATION_MINIFIED_PAYLOAD

    database.py, line 1

    """

    main.py, line 1

    """

    tool_drawer.py, line 77

    "_gateway_create_reminder": {"type":"function","function":{"name":"_gateway_create_reminder","description":"为用户创建一条提醒。当用户说提醒我、几点叫我、别忘了时调用。title用简洁中文描述,notes记录上下文。","parameters":{"t

    Show more

    scripts/test_kiwi_safety_sync.py, line 1

    #!/usr/bin/env python3

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit b01a0c506f4f. can delete files. install fetches a script from the network. can reach a host that is not written as a fixed address. reads a credential or environment file. contains a minified payload.

Date and source

Date checked:

View source

github.com

Commit graded: b01a0c506f4f10f90f30d408c0291f16720f0718

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen