Commit Graph

2150 Commits

Author SHA1 Message Date
Peter Matula
d6dee5807e
CHANGELOG.md: add entry for #1041, #1040 2021-11-15 11:50:31 +01:00
Kirill A. Korinsky
d35d7c19aa Update API for OpenSSL 3.0
Fixes: https://github.com/avast/retdec/issues/1040
2021-11-15 11:48:13 +01:00
Peter Matula
fe7ce20940 Fix docker files and cmake 2021-11-15 09:37:12 +01:00
Peter Matula
8e8cda6fe7 Fix doxygen 2021-11-15 08:15:41 +01:00
Ladislav Zezula
ef31f0f176 Merge branch 'master' of https://github.com/avast/retdec 2021-11-09 10:18:32 +01:00
Peter Matula
f49ecb6ff6
CHANGELOG.md: add entry for #1036 2021-11-02 16:01:03 +01:00
HoundThe
122887a27b
Check for ELF damage (#1036)
* Check if LOAD segments are within the file

* Separate segment checking into its own function, set loadable anyway
2021-11-02 15:58:57 +01:00
Peter Matula
59deef2049
CHANGELOG.md: add entry for #1028, #1029 2021-10-26 14:34:35 +02:00
Ladislav Zezula
112b7e665d
Fixed ImageLoader::Save() (#1029)
* Fixed ImageLoader::Save()

* Review comment solved

* Fixed out-of-bounds read

* Previous behavior of ImageLoader::Save() is back as special case (needed for unpackers)

Co-authored-by: Ladislav Zezula <ladislav.zezula@avast.com>
2021-10-26 14:31:43 +02:00
Peter Matula
14e9d92c49 cmake: conditionally include autheticode 2021-10-25 10:41:32 +02:00
Peter Matula
b39e379519
CHANGELOG.md: entry for #1027 2021-10-25 10:26:02 +02:00
HoundThe
bf1a566eeb
Integrate new authenticode parser (#1027)
* Integrate new authenticode-parser

* Add comments

* Integrate authenticode-parser repository as dependency

* Update to new authenticode-parser version

* Change the verification flow

Co-authored-by: Peter Matula <peter.matula@avast.com>
2021-10-25 10:22:49 +02:00
Peter Matula
5a1cd06b6f
CHANGELOG.md: add entry for #1035 2021-10-25 10:09:41 +02:00
HoundThe
9c74e61c85
Parse various PE timestamps and export them out (#1035)
* Parse various PE timestamps and export them out

* Enable parsing of debug entries other than CodeView

* Include the pe_timestamps header

* Change timestamp format
2021-10-25 10:06:41 +02:00
Ladislav Zezula
8e50535a3a Merge branch 'master' of https://github.com/avast/retdec 2021-10-04 10:03:33 +02:00
Peter Matula
e83e77e141
CHENGELOG.md: add entry for #1016, #1032 2021-10-01 17:35:26 +02:00
Peter Matula
eba8d78c34 remove --backend-aggressive-opts and all the related code 2021-10-01 17:33:53 +02:00
Peter Matula
9eeb7db1c2
CHANGELOF.md: add entry for #1030 2021-10-01 14:01:37 +02:00
HoundThe
c6605e7615
Check if data is not empty in dotnet integer decoding functions (#1030)
* Check if data is not empty in dotnet integer decoding functions

* Restart TeamCity

* Fix typo
2021-10-01 13:59:29 +02:00
Peter Matula
5acc1bf6d5
CHANGELOG.md: add entry for #1025, #1018 2021-09-20 10:33:23 +02:00
Peter Matula
8e405d3578
Add SECURITY.md as requested in #1018 (#1025)
* add SECURITY.md as requested in #1018

* SECURITY.md: do not advise to report security issues publicly
2021-09-20 10:23:42 +02:00
Kirill A. Korinsky
ebfd10d34c Switch to using Python3 module to detect a python
`PythonInterp` is old and deprecated module which may gave up on a system with multiple python installation like 2.7 and 3.x where `/usr/bin/python` is 2.7.
2021-09-13 07:05:29 +02:00
Ladislav Zezula
e00bdbd416 Merge branch 'master' of https://github.com/avast/retdec 2021-09-10 14:44:05 +02:00
Ladislav Zezula
6a793d1014 Fixed discrepancies in icon hash between YARA and retdec-fileinfo 2021-09-01 16:33:30 +02:00
houndthe
d439db36c6 Fix merge error from std::uint refactorization 2021-08-30 17:42:26 +02:00
Peter Matula
f16a39b352
CHANGELOG.md: add entry for #972, #986 2021-08-30 10:54:08 +02:00
HoundThe
bc7daac0a6
Check if certificateTable overlaps a section and export the information (#986)
* Check if certificate table is outside of the image and export the information

* Move signatures that are inside images into their own invalid signatures container

* Don't output invalid signatures
2021-08-30 10:51:11 +02:00
Peter Matula
60e61fa0cb
CHANGELOG.md: add entry for #962, #975 2021-08-30 10:47:04 +02:00
HoundThe
d89571528e
Do not return entry point offset if it's not backed up by disk data (#975)
* Add sanity check for offset existence within a file

* Change unsigned long long to std::uint64_t

* Fix the entry point anomaly flow and add new anomaly for memory only entry point

* Change the entry point evaluation so that EP offset ouside of a file doesn't give warning about invalid entry point due to the memory-only entry points

* Edit the RvaToOffset so it uses virtual size in case real size is larger. Separate the ignore of invalid offset just for PE.

* Create separate function for the valid offset calculation

* Fix comment

* More unsigned long long refactoring, fix found indent issues

* Remove unsigned long long from tests aswell
2021-08-30 10:44:53 +02:00
Peter Matula
6f26feaccb
CHANGELOG.md: add entry for #997 2021-08-30 10:36:20 +02:00
HoundThe
704d1db53b
Fix of .NET analysis differences (#997)
* Use type namespace if exists even when nested

* Reconstruct parameters from signature if no Param info exists

* Fix incorrect  .NET visibility representation

* Change FIleInfo to use always the first occurence of the .NET stream type

* Understand ExtraData flag in MetadataTable header

* Accept empty strings inside StringHeap

* Add check if the type is actually nested

* Rework BlobStream

* Add bound checking

* Fix missing bound checks when parsing arrays

* Update dotnet file detection

* Update doxygen comments

* Add reference to code adapted from YARA

* Specify type, add move semantics to BlobStream

* Comment blob parsing and fix incorrect condition in dotnet detection
2021-08-30 10:34:02 +02:00
Ladislav Zezula
1dccb83c96 Fixed discrepancies in icon hash between YARA and retdec-fileinfo 2021-08-27 12:05:00 +02:00
Kirill A. Korinsky
e364c52dd0 backport yara patch for macOS
This PR is simple backports https://github.com/VirusTotal/yara/pull/1540
to existed way apply patches to yara which is fixed #990
2021-08-26 16:02:58 +02:00
Peter Kubov
9e15ed3a02 Do not report missing stdc++fs on apple/clang (#1002)
macOS/clang never had the stdc++fs library that is required on some
systems using gcc. The message is therefore confusing when it
appears on a macos device and may be misleading when solving
for a compilation error.

This commit removes the message on macOS builds.
2021-08-25 16:58:27 +02:00
Peter Matula
a90814bdc0
CHANGELOG.md: add entry for #963 2021-08-25 14:38:05 +02:00
HoundThe
4cc669b395
Add check that the resource file offset is valid (#982)
* Add check that the resource file offset is valid

* Add flag that represents resource offset validity

* Simplify condition

* Remove using std::
2021-08-25 14:16:54 +02:00
Peter Matula
8511574a2b
CHANGELOG.md: add entry for #994 2021-08-25 14:04:14 +02:00
HoundThe
aa10345f17
Add signatureVerified flag for each signature (#994)
* Add signatureVerified flag for each signature

* Simplify condition

* Remove checking for version == 1 when validating signatures

* Modify plain signature presentation
2021-08-25 14:01:27 +02:00
Peter Matula
502fc5b3a4
CHANGELOG.md: add entry for #1003 2021-08-24 11:07:20 +02:00
Ladislav Zezula
9dd86aca4d
Fixed RETDEC-74 and RETDEC-61 (#1003)
* -m

* Remote copy

* Small fix

* fileinfo regression tests succeeded

* Fixed MPRESS decompiler bug related do imports by ordinal

* decompiler no longer gets generic function names from ordinals

* fix doxygen warnings

* Fixed review comments

Co-authored-by: Ladislav Zezula <ladislav.zezula@avast.com>
Co-authored-by: Peter Matula <peter.matula@avast.com>
2021-08-24 11:03:59 +02:00
Peter Matula
3252c37017
CHANGELOG.md: entry for #1004 2021-08-23 14:09:29 +02:00
Ladislav Zezula
d2a419076c Debug info is only accepted if it has the type of IMAGE_DEBUG_TYPE_CODEVIEW 2021-08-23 14:06:37 +02:00
Marek Milkovič
18b434f02b
Merge pull request #996 from avast/LZ_RETDEC_73
COFF debug info is no longer counted as part of the image
2021-08-05 20:22:33 +02:00
Dadda97
a192dc2b57 Modified AutoHotKey's Yara rule 2021-08-05 13:39:12 +02:00
Dadda97
e066e93217 Modified Visual Basic's Yara rule 2021-08-05 13:21:23 +02:00
Ladislav Zezula
317b2b7e75 COFF debug info is no longer counted as part of the image 2021-08-05 10:07:06 +02:00
Marek Milkovič
c5ab449e9d
Merge pull request #995 from avast/LZ_RETDEC_70
DllFlags are now present on EXEs as well
2021-08-03 11:14:28 +02:00
Ladislav Zezula
89fd9c8d7f DllFlags are now always present 2021-08-02 13:16:04 +02:00
Peter Matula
a24638ab05
CHANGELOG.md: add entries for #989, #981 2021-07-21 12:10:22 +02:00
Ladislav Zezula
d3677c292d
Lz retdec 54 (#981)
* Added more checks for delay import directory

* Hardened resilience against malformed delayed import directories

* Removed unnecessary file

* Iconhash problem fixed

* Fixed getRealSizeOfRawData()

Co-authored-by: Ladislav Zezula <ladislav.zezula@avast.com>
2021-07-21 11:14:56 +02:00