Is ontology safe?
Yes. ontology is safe to install. Oathe's behavioral security audit gave ontology a trust score of 82/100 with 8 findings, none critical or high.
https://clawhub.ai/oswalpalash/ontology
Is ontology safe to install?
The ontology skill is a legitimate typed knowledge graph system for structured agent memory. It demonstrates good security practices including path traversal protection, credential indirection, and use of safe JSON/YAML parsing. The primary concerns are PII accumulation in plaintext logs and the cross-skill data sharing attack surface that could be exploited by a malicious companion skill.
What security issues were found in ontology?
Category Scores
Findings (8)
MEDIUM PII stored in plaintext append-only log -15 ▶
The ontology stores Person entities with name, email, and phone fields in an unencrypted JSONL file. The append-only design means deleted data persists in the log. No access control or encryption is applied.
Evidence: Person: { name, email?, phone?, notes? } stored in memory/ontology/graph.jsonl
MEDIUM Python script with YAML dependency -10 ▶
ontology.py imports yaml (PyYAML) for schema operations. While yaml.safe_load is used correctly, the dependency on an external Python package introduces supply chain risk if the environment has a compromised yaml module.
Evidence: import yaml; yaml.safe_load(f) in load_schema and schema-append command
LOW JSON input parsing via CLI arguments -5 ▶
The script accepts JSON strings via --props and --where CLI arguments. While json.loads is used safely (not eval), malformed JSON could cause unhandled exceptions. The script does not sanitize property values beyond type checking.
Evidence: props = json.loads(args.props) in create, update, relate commands
LOW Cross-skill data sharing attack surface -10 ▶
The skill explicitly positions itself as shared state between skills ('Skills that use ontology should declare' + 'Cross-Skill Communication' section). A malicious companion skill could read all stored entities including personal data.
Evidence: Skill Contract section and Cross-Skill Communication integration pattern in SKILL.md
LOW Broad trigger phrase matching -5 ▶
The skill activates on common phrases like 'remember', 'what do I know about', and 'show dependencies' which could cause unintended skill activation in normal conversation.
Evidence: Trigger on 'remember', 'what do I know about', 'link X to Y', 'show dependencies' in frontmatter description
INFO Path traversal protection implemented 0 ▶
The resolve_safe_path function properly validates that all file paths stay within the workspace root directory, preventing directory traversal attacks via --graph or --schema arguments.
Evidence: resolve_safe_path function with resolved.relative_to(safe_root) check in ontology.py
INFO Credential indirection enforced 0 ▶
The Credential type uses forbidden_properties to prevent direct storage of secrets, requiring indirection via secret_ref. This is a positive security pattern.
Evidence: Credential: forbidden_properties: [password, secret, token, key, api_key] in schema
INFO Sensitive file access from runtime, not skill 0 ▶
Monitoring shows .env, .aws/credentials, and .profile access but these originate from the OpenClaw agent runtime bootstrap, not from the skill code itself.
Evidence: Filesystem events at 10:04:03 for .env, .aws/credentials occur during runtime init, skill has no code to access these files
Should I install ontology?
Oathe's verdict for ontology is SAFE with a trust score of 82/100. Recommendation: Install with caution.