Skip to content

KeyError: 'behavior' #2829

@yundmb

Description

@yundmb

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [✅] I am running the latest version
  • [✅] I did read the README!
  • [✅] I checked the documentation and found no answer
  • [✅] I checked to make sure that this issue has not already been filed
  • [✅] I'm reporting the issue to the correct repository (for multi-repository projects)
  • [✅] I have read and checked all configs (with all optional parts)
  • [✅] Asked and no solution about my issue with deepwiki

root@capev2-sandbox:/opt/CAPEv2# git log | head -n1
commit ec49501

Failure Logs

Jan 07 17:27:04 capev2-sandbox python3[16560]: 2026-01-07 17:27:04,574 [root] INFO: Processing analysis data for Task #527977
Jan 07 17:27:04 capev2-sandbox python3[16560]: XLMMacroDeobfuscator: pywin32 is not installed (only is required if you want to use MS Excel)
Jan 07 17:27:10 capev2-sandbox python3[17270]: 2026-01-07 17:27:10,411 [Task 527977] [lib.cuckoo.core.plugins] ERROR: Failed to run the processing module "BehaviorAnalysis": 'NoneType' object has no attribute 'seek'
Jan 07 17:27:10 capev2-sandbox python3[17270]: Traceback (most recent call last):
Jan 07 17:27:10 capev2-sandbox python3[17270]: File "/opt/CAPEv2/utils/../lib/cuckoo/core/plugins.py", line 318, in process
Jan 07 17:27:10 capev2-sandbox python3[17270]: data = current.run()
Jan 07 17:27:10 capev2-sandbox python3[17270]: File "/opt/CAPEv2/utils/../modules/processing/behavior.py", line 1302, in run
Jan 07 17:27:10 capev2-sandbox python3[17270]: for call in process["calls"]:
Jan 07 17:27:10 capev2-sandbox python3[17270]: File "/opt/CAPEv2/utils/../modules/processing/behavior.py", line 234, in next
Jan 07 17:27:10 capev2-sandbox python3[17270]: self.reset()
Jan 07 17:27:10 capev2-sandbox python3[17270]: File "/opt/CAPEv2/utils/../modules/processing/behavior.py", line 170, in reset
Jan 07 17:27:10 capev2-sandbox python3[17270]: self.fd.seek(0)
Jan 07 17:27:10 capev2-sandbox python3[17270]: AttributeError: 'NoneType' object has no attribute 'seek'
Jan 07 17:27:13 capev2-sandbox python3[17270]: 2026-01-07 17:27:13,126 [Task 527977] [modules.processing.network] INFO: starting processing pcap with httpreplay
Jan 07 17:27:18 capev2-sandbox python3[17270]: 2026-01-07 17:27:18,414 [Task 527977] [modules.processing.network] INFO: finished processing pcap with httpreplay
Jan 07 17:27:18 capev2-sandbox python3[17270]: 2026-01-07 17:27:18,421 [Task 527977] [lib.cuckoo.common.pcap_utils] ERROR: editcap not in path and is required
Jan 07 17:27:18 capev2-sandbox python3[17270]: 2026-01-07 17:27:18,422 [Task 527977] [modules.processing.pcapng] WARNING: pcapng file was not created: /opt/CAPEv2/storage/analyses/527977/dump.pcapng
Jan 07 17:27:18 capev2-sandbox python3[17270]: 2026-01-07 17:27:18,538 [Task 527977] [modules.processing.suricata] WARNING: Suricata returned a Exit Value Other than Zero: b'E: privs: capng_change_id for main thread failed\n'
Jan 07 17:27:19 capev2-sandbox python3[16560]: 2026-01-07 17:27:19,524 [root] ERROR: [527977] Exception when processing task: 'behavior'
Jan 07 17:27:19 capev2-sandbox python3[16560]: pebble.common.types.RemoteTraceback: Traceback (most recent call last):
Jan 07 17:27:19 capev2-sandbox python3[16560]: File "/home/cape/.cache/pypoetry/virtualenvs/capev2-t2x27zRb-py3.10/lib/python3.10/site-packages/pebble/common/process.py", line 65, in process_execute
Jan 07 17:27:19 capev2-sandbox python3[16560]: return Result(ResultStatus.SUCCESS, function(*args, **kwargs))
Jan 07 17:27:19 capev2-sandbox python3[16560]: File "/opt/CAPEv2/utils/process.py", line 158, in process
Jan 07 17:27:19 capev2-sandbox python3[16560]: error_count = RunReporting(task=task.to_dict(), results=results, reprocess=reprocess).run()
Jan 07 17:27:19 capev2-sandbox python3[16560]: File "/opt/CAPEv2/utils/../lib/cuckoo/core/plugins.py", line 822, in init
Jan 07 17:27:19 capev2-sandbox python3[16560]: for process in results["behavior"]["processes"]:
Jan 07 17:27:19 capev2-sandbox python3[16560]: KeyError: 'behavior'
Jan 07 17:27:19 capev2-sandbox python3[16560]: The above exception was the direct cause of the following exception:
Jan 07 17:27:19 capev2-sandbox python3[16560]: Traceback (most recent call last):
Jan 07 17:27:19 capev2-sandbox python3[16560]: File "/opt/CAPEv2/utils/process.py", line 382, in processing_finished
Jan 07 17:27:19 capev2-sandbox python3[16560]: _ = future.result()
Jan 07 17:27:19 capev2-sandbox python3[16560]: File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
Jan 07 17:27:19 capev2-sandbox python3[16560]: return self.__get_result()
Jan 07 17:27:19 capev2-sandbox python3[16560]: File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
Jan 07 17:27:19 capev2-sandbox python3[16560]: raise self._exception
Jan 07 17:27:19 capev2-sandbox python3[16560]: KeyError: 'behavior'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions