Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
catalog / Legal & Compliance / docassemble — Guided Legal Document Assembly
⌬WorkflowLegal & ComplianceFree

docassemble — Guided Legal Document Assembly

An open-source expert system for guided interviews and automated assembly of legal documents, widely used in access-to-justice and legal-aid tools.

@ai-supply
Installs2.2k
⟳ upstream master@df16d70 · updated 1d ago
↗ Source repository
← More Legal & ComplianceLegal & Compliance leaderboard →How we grade security →Source ↗

docassemble

docassemble is a free, open-source expert system for building guided interviews that assemble documents and provide advice. Authored in a mix of Python, YAML, and Markdown, it is widely deployed by courts, legal-aid organizations, and law firms to turn complex legal processes into step-by-step web interviews that generate finished PDF and DOCX documents.

Key features

  • Declarative YAML interviews with embedded Python logic for branching and calculations
  • Assembles PDF/DOCX documents from templates using collected answers
  • Handles e-signatures, multi-user workflows, and machine-readable APIs
  • Integrates with case-management systems and supports many languages
  • Self-hostable via Docker with a mature package ecosystem

Authors define questions and document templates; docassemble runs the interview, validates input, and produces the assembled legal document — a backbone for scalable legal automation.

Curated mirror of the open-source docassemble (MIT). Get it from the source.

Rating rank
#1
of 13 in Legal & Compliance
Install rank
#13
of 13 in Legal & Compliance
Security score
16/100 · D
review
Security rank
#12
of 13 in Legal & Compliance
Installs
2.2k
cat avg 38k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Legal & Compliance leaderboard →
! Security: Review · 1616/100 · grade Dscanned 1h ago

Only compromise signals — malicious or tampered code (leaked secrets, backdoors, path traversal, a dropped executable) — reduce the score. Dangerous-by-capability traits (shell, network, injection strings, pickle) are shown as risk surface: expected for some capabilities — a security tool ships offensive code on purpose — so they do not sink the grade.

Compromise signals
Embedded credentialshighjhpyle-docassemble-df16d70/Docker/ssl/apache.key.orig
found: private key
Embedded credentialshighjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/data/questions/documentation.yml
found: hardcoded credential
What this capability can do · med confidence (static)
⚑ filesystem⚑ shell⚑ network⚑ secrets
egress → ([^\.]+, 169.254.169.254, www.youtube.com, player.vimeo.com, docassemble.org, www.opensource.org, pypi.org, docs.python.org +5
Risk surface (23)
External endpoints declaredlowjhpyle-docassemble-df16d70/.github/workflows/codeql.yml
2 distinct host(s)
Broad capability surfacelowjhpyle-docassemble-df16d70/CHANGELOG.md
5 high-impact capability categories referenced — verify least-privilege
External endpoints declaredlowjhpyle-docassemble-df16d70/CHANGELOG.md
1 distinct host(s)
Broad capability surfacelowjhpyle-docassemble-df16d70/Docker/config/config.yml.dist
3 high-impact capability categories referenced — verify least-privilege
Internal host / private infrastructure referencemediumjhpyle-docassemble-df16d70/Docker/config/nginx-realip
shipped content references a private IP range or internal-only host
Suspicious network referencesmediumjhpyle-docassemble-df16d70/Docker/cron/docassemble-cron-daily.sh
raw IP URL (8 URLs)
Egress to a private/loopback hosthighjhpyle-docassemble-df16d70/Docker/cron/docassemble-cron-daily.sh
169.254.169.254
External endpoints declaredlowjhpyle-docassemble-df16d70/Docker/initialize.sh
3 distinct host(s)
Suspicious network referencesmediumjhpyle-docassemble-df16d70/Docker/run-apache.sh
raw IP URL (2 URLs)
Suspicious code patternshighjhpyle-docassemble-df16d70/Dockerfile
destructive rm -rf /
Potentially unbounded loopmediumjhpyle-docassemble-df16d70/da-cli
an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption
Suspicious code patternsmediumjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/config.py
unsafe yaml.load
Suspicious network referencesmediumjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/config.py
raw IP URL (3 URLs)
Suspicious code patternsmediumjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/data/questions/docstring.yml
dynamic code execution
External endpoints declaredlowjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/data/questions/examples/response-svg.yml
4 distinct host(s)
Prompt-injection phrasinghighjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/data/questions/examples/validation-error.yml
instruction-subversion language detected
Possible obfuscationmediumjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/data/sources/es-words-2.0.xlf
very long lines
Zero-width characterslowjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/data/sources/pt-br-words.yml
8 hidden characters
Path traversal sequencesmediumjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/data/static/document-language.docx
'../' present in content or name
Broad capability surfacelowjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/functions.py
4 high-impact capability categories referenced — verify least-privilege
Suspicious code patternsmediumjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/mermaid.py
OS command execution
Suspicious code patternsmediumjhpyle-docassemble-df16d70/docassemble_base/docassemble/base/util.py
OS command execution; dynamic code execution
External endpoints declaredlowjhpyle-docassemble-df16d70/docassemble_demo/docassemble/demo/data/static/lumen.min.css
5 distinct host(s)
✔ verified source · pinned jhpyle-docassemble-df16d70 · changed since last scan · +egress ([^\.]+, 169.254.169.254, www.youtube.com, player.vimeo.com, docassemble.org, www.opensource.org, pypi.org, docs.python.org, %s.vault.azure.net, api.cloudconvert.com, sync.api.cloudconvert.com, dev.w3.org, www.googleapis.com
OWASP AI control mapping
7passed
8flagged
0runtime-enforced
5governance

Evaluated against the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any control to see the findings.

OWASP Top 10 for LLM Applications
⚠LLM01Prompt Injectionhigh
Adversarial instructions embedded in an artifact that hijack a downstream LLM.
•Prompt-injection phrasing — instruction-subversion language detected (CWE-77)
•Zero-width characters — 8 hidden characters
⚠LLM02Sensitive Information Disclosurehigh
Secrets, credentials or PII shipped inside the artifact.
•Embedded credentials — found: private key (CWE-798)
•Embedded credentials — found: hardcoded credential (CWE-798)
✓LLM03Supply ChainPassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
⚠LLM05Improper Output Handlinghigh
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — destructive rm -rf / (CWE-78)
•Suspicious code patterns — unsafe yaml.load (CWE-502)
•Suspicious code patterns — dynamic code execution (CWE-95)
•Path traversal sequences — '../' present in content or name (CWE-22)
•Suspicious code patterns — OS command execution (CWE-78)
•Suspicious code patterns — OS command execution; dynamic code execution (CWE-78)
⚠LLM06Excessive Agencyhigh
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 2 distinct host(s)
•Broad capability surface — 5 high-impact capability categories referenced — verify least-privilege (CWE-272)
•External endpoints declared — 1 distinct host(s)
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege (CWE-272)
•Egress to a private/loopback host — 169.254.169.254 (CWE-918)
•External endpoints declared — 3 distinct host(s)
•External endpoints declared — 4 distinct host(s)
•Broad capability surface — 4 high-impact capability categories referenced — verify least-privilege (CWE-272)
•External endpoints declared — 5 distinct host(s)
⚠LLM07System Prompt Leakagehigh
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Internal host / private infrastructure reference — shipped content references a private IP range or internal-only host (CWE-200)
•Embedded credentials — found: private key (CWE-798)
•Embedded credentials — found: hardcoded credential (CWE-798)
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption (CWE-835)
OWASP Machine Learning Security Top 10
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
⚠ML02Data Poisoninghigh
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
•Prompt-injection phrasing — instruction-subversion language detected (CWE-77)
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML06AI Supply ChainPassed
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
⚠ML09Output Integrityhigh
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — destructive rm -rf / (CWE-78)
•Suspicious code patterns — unsafe yaml.load (CWE-502)
•Suspicious code patterns — dynamic code execution (CWE-95)
•Path traversal sequences — '../' present in content or name (CWE-22)
•Suspicious code patterns — OS command execution (CWE-78)
•Suspicious code patterns — OS command execution; dynamic code execution (CWE-78)
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.

Consume docassemble — Guided Legal Document Assembly programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/docassemble-legal-document-assembly

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/docassemble-legal-document-assembly/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add docassemble-legal-document-assembly

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/docassemble-legal-document-assembly/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "docassemble-legal-document-assembly" })
OpenAPI spec →
vlatest
! Security: Review · 162d ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
◐Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
↓ 1.0M★ 4.5
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy