Skip to content

Commit

Permalink
Merge pull request #1965 from kevoreilly/vnc_port_2_options
Browse files Browse the repository at this point in the history
expose VNC port via options in task info
  • Loading branch information
doomedraven authored Feb 15, 2024
2 parents 017d2c4 + 3cb46ca commit 6b944b5
Show file tree
Hide file tree
Showing 37 changed files with 1,662 additions and 1,137 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ jobs:
# check-latest: true
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Install requirements
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install --no-interaction --no-root
- name: Install pyattck
run: |
poetry run pip install pyattck==7.1.2
- name: Run Ruff
run: poetry run ruff . --line-length 132 --ignore E501,E402

Expand Down
Binary file modified analyzer/windows/dll/capemon.dll
Binary file not shown.
Binary file modified analyzer/windows/dll/capemon_x64.dll
Binary file not shown.
15 changes: 14 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
### [14.02.2024]
* Monitor update: Protect NtFreeVirtualMemory hook against spurious pointer values (e.g. f4bb0089dcf3629b1570fda839ef2f06c29cbf846c5134755d22d419015c8bd2)

### [08.02.2024] CAPA 7 + CAPE
* [CAPA](https://github.com/mandiant/capa) allows to generate a summary of CAPE's analysis. This gives quick abstract summary of analysis. More details [CAPA v7 blogpost](https://www.mandiant.com/resources/blog/dynamic-capa-executable-behavior-cape-sandbox)
* Monitor update: Fix logging bug causing rare buffer overflows (e.g. 780be7a70ce3567ef268f6c768fc5a3d2510310c603bf481ebffd65e4fe95ff3)

### [05.02.2024]
* PhemedroneStealer config extractor - thanks @tccontre18 - Br3akp0int

### [31.01.2024]
* Monitor update: Protect 64-bit hooks against unaligned stack (e.g. 780be7a70ce3567ef268f6c768fc5a3d2510310c603bf481ebffd65e4fe95ff3)

### [24.01.2024]
* Monitor update: Improve handling of irregularly mapped PE images (e.g. from 7911e39e07995e3afb97ac0e5a4608c10c2e278bef29924ecc3924edfcc495ca)

Expand Down Expand Up @@ -26,7 +39,7 @@
* Monitor update: fix bug in dumping malformed PEs

### [05.12.2023]
* Monitor updates:
* Monitor updates:
* Process dump filter enhancements & fix
* Enhanced checks (parent process path) for service hookset assignment
* Misc fixes
Expand Down
13 changes: 13 additions & 0 deletions conf/cuckoo.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ psql_ssl_mode = disable
# If empty, default is set to 60 seconds.
timeout =

# Log all SQL statements issued to the database.
log_statements = off

[timeouts]
# Set the default analysis timeout expressed in seconds. This value will be
# used to define after how many seconds the analysis will terminate unless
Expand Down Expand Up @@ -210,3 +213,13 @@ path = /mnt/tmpfs/
# in mb
freespace = 2000

[cleaner]
# Invoke cleanup if <= of free space detected. see/set freespace/freespace_processing
enabled = no
# set any value to 0 to disable it. In days
binaries_days = 5
tmp_days = 5
# Remove analysis folder
analysis_days = 5
# Delete mongo data
mongo = no
5 changes: 5 additions & 0 deletions conf/reporting.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# You can also add additional options under the section of your module and
# they will be available in your Python class.

# Generate CAPE's analysis summary by FLARE/Mandiant's CAPA
[flare_capa_summary]
enabled = yes
on_demand= no

# Community
[cents]
enabled = no
Expand Down
1 change: 1 addition & 0 deletions extra/optional_dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ urlextract==1.5.0
pdfminer==20191125
pg_activity
python-tlsh
pyattck = "7.1.2"
10 changes: 10 additions & 0 deletions installer/cape2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ function dependencies() {


sudo apt update 2>/dev/null
sudo systemctl stop [email protected] && sudo systemctl disable [email protected]
apt install tor deb.torproject.org-keyring libzstd1 -y

sed -i 's/#RunAsDaemon 1/RunAsDaemon 1/g' /etc/tor/torrc
Expand Down Expand Up @@ -1345,6 +1346,13 @@ function install_DIE() {
wget "https://github.com/horsicq/DIE-engine/releases/download/${DIE_VERSION}/die_${DIE_VERSION}_Ubuntu_${UBUNTU_VERSION}_amd64.deb" -O DIE.deb && dpkg -i DIE.deb
}

function install_fluentd() {
curl -sSO https://dl.google.com/cloudagents/add-logging-agent-repo.sh && sudo bash add-logging-agent-repo.sh
sudo apt-get update && sudo apt-get install google-fluentd
sudo apt-get install -y google-fluentd-catch-all-config-structured
sudo service google-fluentd start && sudo service google-fluentd status
}

# Doesn't work ${$1,,}
COMMAND=$(echo "$1"|tr "{A-Z}" "{a-z}")

Expand Down Expand Up @@ -1477,6 +1485,8 @@ case "$COMMAND" in
install_crowdsecurity;;
'die')
install_DIE;;
'fluentd')
install_fluentd;;
*)
usage;;
esac
1 change: 1 addition & 0 deletions lib/cuckoo/common/abstracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ def set_path(self, analysis_path):
# self.memory_path = os.path.join(self.analysis_path, "memory.dmp")
self.memory_path = get_memdump_path(analysis_path.rsplit("/", 1)[-1])
self.self_extracted = os.path.join(self.analysis_path, "selfextracted")
self.files_metadata = os.path.join(self.analysis_path, "files.json")

try:
create_folder(folder=self.reports_path)
Expand Down
Loading

0 comments on commit 6b944b5

Please sign in to comment.