Where MISP attachment storage fits when samples pile up
A team whose MISP instance is filling disks faster than planned usually has one question first: where do the samples go, and can the storage sit on NFS or S3? MISP keeps attachments and malware samples on the local filesystem, and slow network storage such as NFS or S3 can be used for specific directories only. The rest of the installation, including the database, Redis and the core application paths, should stay on fast local disk. The misp-docker project makes this split explicit: on slow storage, only the image, terms and attachment directories should be mounted, with the ATTACHMENTS_DIR setting pointing at the attachment location.
Disk use in MISP grows for three reasons. The first is the samples and attachments themselves, which accumulate with every event that carries a file. The second is logging, which grows with API use, sync activity and background jobs. The third is the age of the server, since a long-lived instance keeps its history unless someone sets a retention policy. The MISP user guide's Requirements page lists these same drivers, so use it as the baseline when estimating capacity. Confirm with the project's current guidance what size each directory reaches in your community before you choose a mount.
Plan this before go-live, not after the first disk alert. Decide which directories sit on network storage, confirm with your storage team the latency and locking behavior they can guarantee, and test an attachment upload and retrieval on the exact mount you intend to use. The misp-docker README is the natural next read for the mount and environment settings. Moving attachments later means copying data while the instance is in use, so the storage layout you choose at deployment is the one you will live with.
Storage options for MISP attachments and when each fits
This table compares local disk, NFS and S3-compatible object storage for the attachment, image and terms directories, including a split layout where only those directories move. Read each row against your own sample volume, number of containers and backup tooling, and treat the last rows as the operational ownership check before you choose.
| Factor | Local disk | NFS | S3-compatible object storage |
|---|---|---|---|
| Latency sensitivity | Lowest latency, so file reads when analysts open samples are fastest | Added network round trips on every read and write, which slows attachment-heavy pages | Highest per-request overhead, so suits fewer large fetches better than many small reads |
| Shared access by multiple containers | Usually a single host only, so multi-container or multi-host layouts need another option | Mountable by several containers or hosts at once when the export and locking are set up correctly | Shared by design, but MISP needs a mount or adapter layer to treat it as a local directory, which you must confirm |
| Fit with misp-docker guidance | Default for all directories, including the database and logs | Suitable for the attachment, image and terms directories only, with ATTACHMENTS_DIR set to the mount | Same placement rule: only attachment, image and terms directories, never logs or config |
| Backup and snapshot behavior | Covered by host backup or volume snapshots taken with the rest of the instance | Depends on the NFS server's snapshot and replication, so confirm consistency with the database backup | Depends on bucket versioning, lifecycle rules and replication settings, so confirm restore points match the database |
| Operational ownership | Your server team owns disk growth, filesystem and backups | Your storage team owns the NFS export, permissions and availability, which MISP depends on | Your storage platform team owns buckets, credentials, quotas and retention, and the MISP team owns the mount configuration |
| Disk growth planning | Plan capacity on the host, watching sample volume and log retention together | Grows on the shared array, so track usage per instance to avoid starving other workloads | Grows in the bucket, so set lifecycle and quota policies and confirm how costs are billed by your provider |
| Split layout (only attachments, images and terms moved) | Not applicable, since everything stays local | Common fit when the file store already exists, with database and logs kept on local disk | Possible where object storage is strategic, but confirm the mount method and performance with a test instance first |
How to move attachment storage to NFS or S3 with misp-docker
This sequence moves MISP's attachment and sample storage off local disk onto NFS or S3-backed storage while keeping the rest of the misp-docker stack on fast local volumes. It ends with a verified, restart-tested instance that still serves existing and new attachments.
Confirm the image tag and misp-docker version
The platform team checks the MISP image tag and the misp-docker revision in use, and confirms both are the versions planned for production. MISP 2.5 is the recommended line for new deployments, and the MISP 2.5.50 release from 9 October 2026 is the latest version named in the project's release notes, so confirm which tag you are pinning against that list. Record the tag and the misp-docker commit in your change record, because the volume layout and environment keys in the next steps come from that exact revision. The step is done when the running containers report the recorded tag and the misp-docker files in your working copy match that commit.
Size the attachment volume
Estimate how much sample and attachment data the instance will hold, using your expected event volume, the size of typical samples, and how long you plan to keep them. The MISP requirements guidance says disk use grows with samples and attachments, logging and the longevity of the server, so include log retention and years of growth in the estimate, not just today's data. Ask your storage team for the NFS export or S3 bucket capacity, growth headroom and backup policy, and confirm the storage platform's own redundancy. The step is done when the storage owner has signed off a capacity figure with headroom and the growth assumptions are written down.
Mount only the image, terms and attachment directories
In the compose file, bind only the image, terms and attachment directories to the slow storage, and leave the database, Redis, configuration, logs and GnuPG volumes on fast local disk. The misp-docker README advises mounting only these directories on slow storage such as NFS or S3, so do not move the whole data path. If you use NFS, mount the export on the Docker host first and bind that path into the container. If you use S3, use a mount layer that presents the bucket as a POSIX path, and test it on the host before MISP sees it. The step is done when
docker compose configshows the three directories on the intended mount points and no other path points at network storage.Set ATTACHMENTS_DIR in the environment file
Set
ATTACHMENTS_DIRin the.envfile to the container path where the attachment mount is presented, and make sure the path matches the bind mount in the compose file exactly. Keep the value consistent across the core container and any worker containers that read or write attachments. Do not edit the value only in the running container, because a restart or recreate would revert it. The step is done whendocker compose configresolvesATTACHMENTS_DIRto the mounted path in every service that needs it.Migrate existing files while MISP is stopped
Stop the MISP stack, then copy the existing attachment and sample files from the local volume to the new storage, preserving the directory structure and file metadata. Stopping the stack first prevents writes during the copy, so the destination is a consistent snapshot. Keep the original local copy until the verification steps pass. Compare file counts and total size between source and destination, and spot-check a sample of hashes. The step is done when the counts and sizes match and the spot-checked hashes are identical on both sides.
Set ownership and permissions to match the MISP user
Confirm that the user and group IDs the MISP container runs as can read and write the mounted directories. Network mounts often map identities differently from local disks, so check ownership from inside the container, not just on the host. For NFS, confirm the export options and the UID and GID mapping with the storage team. For S3-backed mounts, confirm the credentials and the mount options that allow writes. The step is done when a write test file created from inside the container is readable and writable by the MISP user, and the test file is removed afterwards.
Start the stack and test uploads and downloads
Start the stack and upload a benign test sample to an event through the web interface or the API. Confirm that the file is written to the new mount, appears in the attachment directory, and downloads correctly afterwards with a matching hash. Also download a sample that was migrated from the old volume, since that proves the copy is usable. Check the MISP logs for storage errors or permission denials during these operations. The step is done when a new upload and a migrated file both download with matching hashes and the logs show no storage errors.
Restart the stack and confirm samples persist
Restart the containers, then repeat the download of the test sample and one migrated file. Restart the stack fully, including recreating the containers, so you test the persistence of the compose configuration and not only the running process. Confirm that the mount is present after a host reboot if your NFS or S3 mount is managed by the host. Only after these checks pass should you plan the removal of the old local copy, and keep it for a period your change process sets. The step is done when both files download with matching hashes after a container recreate and, if tested, a host restart, and the mount appears in the container without manual steps.
Planning disk growth by community type
An analyst instance usually holds a modest number of events that analysts create or review by hand. Growth comes mostly from the attachments analysts upload, such as reports, exported packages and occasional samples, plus logs and the database that grows with every event and attribute. The MISP requirements guidance notes that disk use grows with samples and attachments, logging and the longevity of the server, so a long-lived analyst instance can outgrow its original disk even when its daily activity looks light.
- Attachment directory: Track how much space the attachments directory uses, since manual uploads are the main source of file growth here.
- Log volume: Measure the size of the log directory over several weeks, because logging often grows steadily regardless of user count.
- Database size: Record database size at fixed intervals to separate event growth from file growth.
- Server age: Plan for a longer service life than the first project, since retained data accumulates over years.
- Move trigger: Consider moving attachments to NFS or object storage when the attachments directory becomes the largest consumer and backups take longer to complete.
Confirm your growth figures with a few months of real measurements before choosing a disk size, and ask your team how long analyst data must be kept.
A sharing hub receives events and attachments from many partner organizations, so growth is driven by inbound volume rather than by local analysts. Malware samples and attachments often dominate disk use, and their size varies widely between communities. Sync traffic, correlation work and retained logs add further load. Hubs also tend to run for many years, which the requirements guidance flags as a growth driver in its own right.
- Inbound attachments: Measure attachment volume per day from sync partners, since this is usually the fastest-growing category.
- Retention policy: Write down how long samples are kept and who decides when they are removed, because retention sets the long-term footprint.
- Storage latency: Watch request times and background job duration after any change to NFS or object storage, since slow attachment access affects the whole platform.
- Backup window: Track how long backups of the attachments directory take as it grows, because backup time often becomes the first operational limit.
- Move trigger: Plan the move to NFS or object storage early for hubs, before the local disk is near capacity, and confirm the chosen storage meets the performance you measured.
Ask the project and your sizing guidance for the storage pattern that suits a hub, and confirm how your partners expect samples to be handled.
An endpoint instance mostly receives indicators, feeds and synchronized events so that detection tools can consume them. It usually stores few attachments, so its growth is driven by the volume of indicators and the logs produced by feeds, synchronization and scheduled jobs. Because the instance is often treated as disposable infrastructure, teams sometimes skip capacity planning, and then find that the database and logs have filled the disk without warning.
- Indicator volume: Track the number of attributes and events added each week from feeds and sync partners, since this drives database growth.
- Feed and job logs: Measure log growth from scheduled pulls and pushes, which can be steady even when few people use the interface.
- Attachment share: Confirm the attachments directory stays small, since most endpoint instances should not hold samples at all.
- Rebuild cost: Note how long a rebuild from configuration would take, which informs how much data is worth keeping locally.
- Move trigger: Move attachments only if the instance stores them, and act on disk growth in logs and the database first.
Ask your team whether endpoint instances must keep attachments locally or can fetch them from a hub, since that answer often removes the need for shared storage entirely.
How the attachment mount sits beside the rest of the stack
The diagram starts at the NGINX container, which passes requests to the MISP core container. The core container reads and writes its database and Redis on local storage, while the image, terms and attachment directories sit on a separate NFS or S3 boundary. The ATTACHMENTS_DIR setting points the core container at the attachment mount, and the backup path should cover that mount and the local database together. Check that the mount is the only slow path and that each directory is backed up on a schedule you have tested.
Local database and Redis stay separate from the NFS or S3 attachment mount.
Security risks when samples live on shared or object storage
Malware samples and attachments are some of the most sensitive data a MISP instance holds, and moving them onto NFS or S3 moves that risk onto the storage layer. The cards below cover the controls that decide who can read samples, how they are protected, and how they stay consistent with the database and are eventually removed.
Read access on the mount
Anyone who can read the export or bucket can read raw malware samples, even without a MISP login. Check which hosts, UIDs and IAM principals can mount or list the attachment directory, and confirm that only the MISP containers hold access. Test from an unrelated host that the path cannot be browsed. Restrict NFS exports to specific client addresses and use bucket policies that deny public access by default.
misp-docker READMEEncryption in transit
Samples travel between the MISP container and storage on every read and write. For NFS, confirm that the transport is protected (for example, Kerberos-secured exports where your storage supports them) and that the network path is isolated from user traffic. For S3-compatible storage, require HTTPS endpoints and reject plain HTTP in the bucket policy. Confirm these settings with your storage vendor, since options vary by platform.
Encryption at rest
Samples sit on disks or in buckets outside MISP's database, so database encryption does not cover them. Ask the storage team whether volumes or buckets are encrypted at rest, who holds the keys, and how key rotation works. Record the answer in the MISP data-handling documentation so an auditor can trace where sample bytes live. Where keys are managed centrally, confirm that MISP's service account cannot export them.
Ownership and permissions mismatch
The UID and GID that the MISP container writes with must match the owner on the NFS export or the bucket credentials used for S3. A mismatch either blocks writes or, worse, forces teams to widen permissions to 777 or share a broad key. Confirm the numeric IDs in both places, keep the directory mode restrictive, and use a dedicated service identity with rights limited to the attachment path.
Backup consistency with the database
Attachment records live in the database while the bytes live on the mount, so a restore from one without the other leaves broken or orphaned samples. Plan backups so the database dump and the attachment store are captured in the same window, and test a restore of both together. Ask whether your storage platform supports snapshots that can be coordinated with database backups, and keep the copies under the same access controls as the originals.
Retention and deletion of samples
Deleting an event in MISP does not guarantee that the underlying file is removed from NFS or S3, and copies may persist in backups or snapshots. Decide how long samples are kept, who approves deletion, and whether object versioning or snapshot retention would keep deleted samples recoverable. Verify deletion by checking the storage path after a test removal, and document how deleted samples are handled in backups.
Questions teams ask about MISP attachment storage
Can MISP store attachments on NFS or S3 object storage?
Yes, the misp-docker project documents storing attachments on slow storage such as NFS or S3, but only for specific directories. Its guidance is to mount only the image, terms and attachment directories on that storage and to point the ATTACHMENTS_DIR setting at the attachment mount. The rest of the MISP state, including the database and the Redis data, should stay on local, fast volumes. Before you commit, confirm with the MISP project and your own storage team how your chosen mount type behaves under concurrent writes, file locking and latency, because those behaviors vary by platform and by backend. Check the setup against the MISP Docker README for the current directory list.
What does moving MISP attachment storage cost in effort?
The cost is mostly skilled staff time, split across storage, database and MISP work. The main drivers are how many attachment files and how much data you already hold, whether the MISP instance is native or containerized, whether the storage target is NFS or S3 and how it is secured, and how many environments need the same change, such as staging and production. Your own platform costs also recur, since the new storage backend has its own capacity, backup and monitoring needs. Ask any provider for a written scope that lists each directory moved, the test plan, the rollback step and the handover of the new storage runbook. Compare quotes on that scope, not on a headline figure.
How long does an attachment storage migration take?
Duration depends on the volume of existing attachments, the transfer speed between the old and new storage, the number of MISP instances involved and how much testing your change process requires. A small instance with few samples is a different job from a sharing hub holding years of malware samples. Plan a window for the copy, a verification pass that compares file counts and checksums, and a rollback window in case the application misbehaves after cutover. The MISP requirements guidance notes that disk use grows with samples, attachments and the longevity of the server, so the size of today's data is the first input to ask about. Request a duration estimate that is tied to a measured data size from your own environment.
Can our own team move MISP attachments without outside help?
Often yes, if your team already runs MISP and has storage administration experience, but the work crosses several skill areas. A storage admin must set up the NFS export or S3 bucket with correct permissions and encryption, a database administrator must confirm that stored paths and metadata stay consistent, and a MISP administrator must change configuration, check the web and worker services and test uploads and downloads. Teams without one of these skills often find the cutover riskiest. An internal team can run a rehearsal on a copy of production first, then decide whether to proceed alone or bring in a partner for the final change and the runbook.
What skills and access does the attachment migration need from us?
Prepare three roles and access to match. A storage administrator needs rights to create NFS exports or object storage buckets, set access policies and review network paths between the MISP host and the storage. A database administrator needs read access to the MISP database and a way to verify references to attachment files after the move. A MISP administrator needs administrative access to the instance, the container or host configuration, the .env settings and a maintenance window for the change. Also confirm who approves production changes and who owns the backups that cover both the old and new locations.
How should we plan disk growth for a sample-heavy MISP community?
Plan growth from three inputs: the volume of samples and attachments you expect to receive, the retention period you set for events and the logging you keep. The MISP requirements guidance says disk use grows with samples and attachments, logging and the longevity of the server, so all three belong in the forecast. Measure the current attachment directory and its growth rate over several weeks, then model growth for each sharing community you join, because sample volume often rises when you add partners. Keep headroom on the storage tier, set alerts well before capacity limits, and review the forecast each quarter. Ask any partner to show the forecast method with your own measured numbers.
How do backups change when attachments live on NFS or S3?
Backups must cover the attachment location as a separate data set, not as part of the local MISP volumes. Confirm that your backup tool can read the NFS export or the object bucket, that it preserves file paths and metadata, and that restores put attachments back where the database expects them. For S3, check object versioning, lifecycle rules and whether deletes in MISP trigger deletes in the bucket. Test a full restore of both the database and the attachment store on a separate system, and record the time it takes. Backup and restore for a mixed local and remote setup should be documented in the runbook and rehearsed before it is needed.
What should we check before we change MISP attachment storage?
Check the sequence before any change reaches production. Confirm the MISP version you run and the install method, since the project's current guidance recommends MISP 2.5 for new deployments. Verify the directory list in the container or host setup, then test the change on a copy with real data volume. Confirm permissions, network path reliability and the behavior of the storage backend when it is unavailable. Define the rollback step and the verification steps that prove every attachment still opens. Keep the old storage path intact until the new one has run through a full retention cycle.
What DeployOpen plans and delivers for attachment storage
DeployOpen starts attachment storage work with a growth review inside your own infrastructure, because the storage layout only makes sense once you know what your community will upload and how long you need to keep it. We look at the expected volume of malware samples and attachments per day, the share of events that carry files, the log retention you intend to keep, and the expected life of the server. The MISP user guide notes that disk use grows with samples and attachments, logging and the longevity of the server, so each of those inputs goes into the written plan. The output of this step is a growth model with assumptions you can challenge, not a single disk number presented as fact.
Next we select the storage layout and configure misp-docker to match it. In practice this means deciding which directories live on local disk and which go to NFS or S3-compatible storage. Following the misp-docker guidance for slow storage, only the image, terms and attachment directories are candidates for the remote mount, with ATTACHMENTS_DIR set to match. Our work covers the mount options, ownership and permissions for the MISP web and worker containers, the .env and compose settings that point MISP at the mount, and a check that the database and Redis stay on fast local storage. We then test restores: we restore a sample attachment set and a database snapshot to a clean host and confirm that the files and events still match. The engagement ends with a runbook covering mount failure, capacity alerts and restore steps. Scope, deliverables and timelines are agreed in writing before work starts, and a quote follows from that written scope.
How DeployOpen works on this
DeployOpen plans and builds MISP attachment storage inside your own infrastructure, so the sample store, the database and the web tier are sized and tested together. We scope the storage layout in writing before any build starts, then hand over documentation your operations team can run without us.
How we scope
- The written scope lists which MISP directories sit on NFS or S3 and which stay on local disk.
- We record the storage backend, mount options, expected sample volume and retention period you have chosen.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
How we build
- We configure ATTACHMENTS_DIR and the image, terms and attachment mounts against your chosen storage platform.
- We test file writes, reads, permissions and failure behavior when the NFS server or object store is slow or unavailable.
- We confirm that uploads, downloads and sync traffic still work for users and partners after the storage change.
How we hand over
- You receive a written storage design covering mounts, sizing assumptions, growth planning and backup scope.
- The runbook explains how to add capacity, rotate storage credentials and verify attachment integrity after changes.
- We walk your platform and security teams through the configuration so they can review it independently.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can cover MISP version upgrades, so storage mounts are rechecked against each new release.
- Ask any provider to confirm how storage changes are tested before they reach your production instance.

