Giter Club home page Giter Club logo

Comments (16)

doomedraven avatar doomedraven commented on July 18, 2024 2

oh thank you, there is a typo, "file" shouldnt be in that list, i have removed it from there, try to git pull and now it should be solved

from capev2.

doomedraven avatar doomedraven commented on July 18, 2024

from capev2.

br0pi avatar br0pi commented on July 18, 2024

@doomedraven Thanks for the reply... I had an error with poetry run python cleaners.py --clean due to a permission denied error when the script tried to remove some pyc files in the pycache folders. So I proceeded to remove those files manually and running the above command was successful. plus i checked postgres and all tasks was deleted. but nevertheless I get some error in process log:

2024-04-22 06:04:08,889 [Task 1] [modules.processing.analysisinfo] CRITICAL: Failed to get start/end time from Task
2024-04-22 06:04:09,001 [Task 1] [modules.processing.behavior] WARNING: Analysis results folder does not exist at path "/opt/CAPEv2/storage/analyses/1/logs"
2024-04-22 06:04:09,005 [Task 1] [lib.cuckoo.core.plugins] INFO: Logs folder doesn't exist, maybe something with with analyzer folder, any change?
2024-04-22 06:04:09,228 [Task 1] [lib.cuckoo.core.plugins] ERROR: Failed to run the reporting module "CAPASummary": 'NoneType' object has no attribute 'enabled'
Traceback (most recent call last):
  File "/opt/CAPEv2/utils/../lib/cuckoo/core/plugins.py", line 738, in process
    current.run(self.results)
  File "/opt/CAPEv2/utils/../modules/reporting/flare_capa_summary.py", line 26, in run
    if HAVE_FLARE_CAPA and self.options.flare_capa_summary.enabled and not self.options.flare_capa_summary.on_demand:
AttributeError: 'NoneType' object has no attribute 'enabled'

and also same error in cuckoo log even if no analysis were already performed:

2024-04-22 05:33:27,587 [lib.cuckoo.core.scheduler] INFO: Using "kvm" machine manager with max_analysis_count=0, max_machines_count=10, and max_vmstartup_count=5
2024-04-22 05:33:27,590 [lib.cuckoo.core.scheduler] INFO: Loaded 1 machine/s
2024-04-22 05:33:27,592 [lib.cuckoo.core.scheduler] INFO: Waiting for analysis tasks
2024-04-22 06:04:04,060 [lib.cuckoo.core.scheduler] ERROR: Task #1: Analysis results folder already exists at path '/opt/CAPEv2/storage/analyses/1', analysis aborted
2024-04-22 06:04:04,075 [lib.cuckoo.core.scheduler] INFO: Task #1: Starting analysis of FILE '/tmp/cuckoo-tmp/upload_8kpl83ir/rfqmemdump.exe'
2024-04-22 06:04:04,099 [lib.cuckoo.core.scheduler] INFO: Task #1: analysis procedure completed

could you please tell me if my configuration files are set correctly? or ther's something i missed?
thanks in advance

from capev2.

doomedraven avatar doomedraven commented on July 18, 2024

do you have conf/processing.conf?

from capev2.

br0pi avatar br0pi commented on July 18, 2024

@doomedraven i didn't touch processing.config (execpt for vt key) so it is pretty the same as the default file. Anyway i tried to lunch cape with debug option and i got two error generated by scheduler.py:

  • init storage: Task #%s: Analysis results folder already exists at path '%s', analysis aborted", self.task.id, self.storage) even if i proceeded to clean cape as i said before and

  • acquire_machine: Task #%s: no machine available yet for machine '%s', platform '%s' or tags '%s'.

i checked kvm and cuckoo cinfig files many times but no luck

from capev2.

doomedraven avatar doomedraven commented on July 18, 2024

from capev2.

br0pi avatar br0pi commented on July 18, 2024

No, the file does exist in conf folder or is in conf/defaults? El mar, 23 abr 2024, 17:28, br0pi @.> escribió:

@doomedraven https://github.com/doomedraven i didn't touch processing.config (execpt for vt key) so it is pretty the same as the default file. Anyway i tried to lunch cape with debug option and i got two error generated by scheduler.py: - init storage: Task #%s: Analysis results folder already exists at path '%s', analysis aborted", self.task.id, self.storage) even if i proceeded to clean cape as i said before and - acquire_machine: Task #%s: no machine available yet for machine '%s', platform '%s' or tags '%s'. i checked kvm and cuckoo many times but no luck — Reply to this email directly, view it on GitHub <#2077 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOFH36ENAYW4FXLY3KC2ODY6Z42RAVCNFSM6AAAAABGRICY5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZSG4YDMMRZGY . You are receiving this because you were mentioned.Message ID: @.
>

It is under /config: /opt/CAPEv2/config/processing.conf

from capev2.

doomedraven avatar doomedraven commented on July 18, 2024

from capev2.

br0pi avatar br0pi commented on July 18, 2024

Sorry it was a typo.. it is under conf folder: conf/processing.py... i reproduced clean step again but i got same error:

 Analysis results folder already exists at path '/opt/CAPEv2/storage/analyses/1', analysis aborted

but the static analysis gets completed anyway. Meanwhile it entering this loop:

# Starts a loop to acquire a machine on which to run the analysis.
        while True:
            machine_lock.acquire()

generates the error not machinery.availables as I posted earlier

from capev2.

doomedraven avatar doomedraven commented on July 18, 2024

from capev2.

dfr-fands avatar dfr-fands commented on July 18, 2024

I'm having this same exact error on a clean reinstall of CAPE (with my custom config), there seems to be an issue installing the flare-capa module, but even after disabling CAPA everywhere in the config this still happens.

On my prod installation which has an older version of CAPE it still works fine with the same config. I couldn't point out when exactly it broke, might have to do with things outside the repo (packages or something like that)

In cuckoo.py:
image

In process.py:
image

The analysis goes into processing mode immediately after being launched and has no behavioral/network results.

The machine works and the agent is running, and the cape server has connectivity to it (checked with curl agent_ip:8000)

from capev2.

doomedraven avatar doomedraven commented on July 18, 2024

That's interesting, investigation will be delayed as we are at conference and after I'm on vacations

from capev2.

br0pi avatar br0pi commented on July 18, 2024

@dfr-fands Thanks for reply... at least I know it is not a problem with my config files.
@doomedraven I will be waiting for your check.. thanks

from capev2.

MmAaXx500 avatar MmAaXx500 commented on July 18, 2024

For me the no machine available yet for machine is caused by bfce3fd and 8ecbf33. Reverting them fixes it for me. The problem is that these commits are skipping the is_relevant_machine_available() call that should set the scheduled status in the database

self.set_machine_status(assigned.label, MACHINE_SCHEDULED)

That status is checked during acquire() and because the label is not set it can't acquire it.
if need_scheduled:
machines = machines.filter(Machine.status.like(MACHINE_SCHEDULED))

from capev2.

MmAaXx500 avatar MmAaXx500 commented on July 18, 2024

It works for me, but the last word is @br0pi 's

from capev2.

br0pi avatar br0pi commented on July 18, 2024

I confirm that it works as expected, thanks to everyone who contributed to this issue.

Before I close the case, I would like to ask if anyone can clarify how to get the 4 digits that correspond with real hardware in order to replace the WOOT value on kvm install file. i got dsdt.dat file from acpidump than i ran iasl -d dsdt.dat command but I am not so sure that i've identified the correct value. thanks in advance

from capev2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.