docker-packing-box icon indicating copy to clipboard operation
docker-packing-box copied to clipboard

Error while setup detector manalyze

Open cybersecurity-dev opened this issue 8 months ago • 1 comments

packing-box setup detector manalyze
00:00:00.474 [INFO] Setting up Manalyze...
00:00:02.773 [ERROR] CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


Updating yara...
Updating hash-library...
CMake Deprecation Warning at external/yara/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at external/hash-library/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
00:00:21.440 [ERROR] In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:31,
                 from /home/user/.opt/detectors/manalyze/include/manape/utils.h:35,
                 from /home/user/.opt/detectors/manalyze/include/manape/pe.h:41,
                 from /home/user/.opt/detectors/manalyze/include/plugin_framework/plugin_interface.h:25,
                 from /home/user/.opt/detectors/manalyze/plugins/plugin_authenticode/plugin_authenticode_openssl.h:28,
                 from /home/user/.opt/detectors/manalyze/plugins/plugin_authenticode/plugin_authenticode_openssl.cpp:18:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/checked.h:235:34: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  235 |     class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66,
                 from /usr/include/c++/13/string:47,
                 from /home/user/.opt/detectors/manalyze/plugins/plugin_authenticode/plugin_authenticode_openssl.h:20:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:32:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/unchecked.h:179:40: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  179 |           class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                        ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:31,
                 from /home/user/.opt/detectors/manalyze/include/manape/utils.h:35,
                 from /home/user/.opt/detectors/manalyze/include/manape/pe.h:41,
                 from /home/user/.opt/detectors/manalyze/include/plugin_framework/plugin_interface.h:25,
                 from /home/user/.opt/detectors/manalyze/include/plugin_framework/plugin_manager.h:29,
                 from /home/user/.opt/detectors/manalyze/src/main.cpp:38:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/checked.h:235:34: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  235 |     class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66,
                 from /usr/include/c++/13/string:47,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/bits/ios_base.h:41,
                 from /usr/include/c++/13/ios:44,
                 from /usr/include/c++/13/ostream:40,
                 from /usr/include/c++/13/iostream:41,
                 from /home/user/.opt/detectors/manalyze/src/main.cpp:18:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:32:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/unchecked.h:179:40: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  179 |           class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                        ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:31,
                 from /home/user/.opt/detectors/manalyze/include/manape/utils.h:35,
                 from /home/user/.opt/detectors/manalyze/include/manape/pe.h:41,
                 from /home/user/.opt/detectors/manalyze/plugins/plugin_authenticode/pe_authenticode_digest.h:25,
                 from /home/user/.opt/detectors/manalyze/plugins/plugin_authenticode/pe_authenticode_digest.cpp:18:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/checked.h:235:34: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  235 |     class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_algobase.h:65,
                 from /usr/include/c++/13/algorithm:60,
                 from /home/user/.opt/detectors/manalyze/plugins/plugin_authenticode/pe_authenticode_digest.h:21:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:32:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/unchecked.h:179:40: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  179 |           class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                        ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:31,
                 from /home/user/.opt/detectors/manalyze/include/manape/utils.h:35,
                 from /home/user/.opt/detectors/manalyze/include/manape/pe.h:41,
                 from /home/user/.opt/detectors/manalyze/include/plugin_framework/plugin_interface.h:25,
                 from /home/user/.opt/detectors/manalyze/plugins/plugin_virustotal/plugin_virustotal.cpp:30:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/checked.h:235:34: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  235 |     class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13/memory:66,
                 from /usr/include/boost/asio/detail/memory.hpp:21,
                 from /usr/include/boost/asio/execution/detail/as_invocable.hpp:20,
                 from /usr/include/boost/asio/execution/execute.hpp:23,
                 from /usr/include/boost/asio/execution/executor.hpp:25,
                 from /usr/include/boost/asio/execution/allocator.hpp:20,
                 from /usr/include/boost/asio/execution.hpp:18,
                 from /usr/include/boost/asio/any_completion_executor.hpp:22,
                 from /usr/include/boost/asio.hpp:20,
                 from /home/user/.opt/detectors/manalyze/plugins/plugin_virustotal/plugin_virustotal.cpp:25:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:32:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/unchecked.h:179:40: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  179 |           class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                        ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:31,
                 from /home/user/.opt/detectors/manalyze/include/manape/utils.h:35,
                 from /home/user/.opt/detectors/manalyze/include/manape/pe.h:41,
                 from /home/user/.opt/detectors/manalyze/include/dump.h:29,
                 from /home/user/.opt/detectors/manalyze/src/dump.cpp:18:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/checked.h:235:34: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  235 |     class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66,
                 from /usr/include/c++/13/string:47,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/bits/ios_base.h:41,
                 from /usr/include/c++/13/iomanip:42,
                 from /home/user/.opt/detectors/manalyze/src/dump.cpp:17:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:32:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/unchecked.h:179:40: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  179 |           class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                        ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
/home/user/.opt/detectors/manalyze/src/dump.cpp: In function ‘bool mana::extract_resources(const PE&, const std::string&)’:
/home/user/.opt/detectors/manalyze/src/dump.cpp:731:34: warning: ‘std::string boost::filesystem::basename(const path&)’ is deprecated: Use path::stem() instead [-Wdeprecated-declarations]
  731 |         auto base = bfs::basename(*pe.get_path());
      |                     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/boost/filesystem.hpp:21,
                 from /home/user/.opt/detectors/manalyze/include/manape/resources.h:28,
                 from /home/user/.opt/detectors/manalyze/include/manape/pe.h:42:
/usr/include/boost/filesystem/convenience.hpp:35:20: note: declared here
   35 | inline std::string basename(const path& p)
      |                    ^~~~~~~~
/home/user/.opt/detectors/manalyze/src/dump.cpp: In function ‘bool mana::extract_authenticode_certificates(const PE&, const std::string&, const std::string&)’:
/home/user/.opt/detectors/manalyze/src/dump.cpp:802:83: warning: ‘std::string boost::filesystem::basename(const path&)’ is deprecated: Use path::stem() instead [-Wdeprecated-declarations]
  802 |                 out_path = bfs::path(destination_folder) / bfs::path(bfs::basename(*pe.get_path()) + ".p7b");
      |                                                                      ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/boost/filesystem/convenience.hpp:35:20: note: declared here
   35 | inline std::string basename(const path& p)
      |                    ^~~~~~~~
/home/user/.opt/detectors/manalyze/src/main.cpp: In function ‘void print_help(boost::program_options::options_description&, const std::string&)’:
/home/user/.opt/detectors/manalyze/src/main.cpp:80:45: warning: ‘std::string boost::filesystem::basename(const path&)’ is deprecated: Use path::stem() instead [-Wdeprecated-declarations]
   80 |         std::string filename = bfs::basename(argv_0);
      |                                ~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/boost/filesystem.hpp:21,
                 from /home/user/.opt/detectors/manalyze/src/main.cpp:27:
/usr/include/boost/filesystem/convenience.hpp:35:20: note: declared here
   35 | inline std::string basename(const path& p)
      |                    ^~~~~~~~
/home/user/.opt/detectors/manalyze/src/main.cpp:81:47: warning: ‘std::string boost::filesystem::extension(const path&)’ is deprecated: Use path::extension() instead [-Wdeprecated-declarations]
   81 |         std::string extension = bfs::extension(argv_0);
      |                                 ~~~~~~~~~~~~~~^~~~~~~~
/usr/include/boost/filesystem/convenience.hpp:29:20: note: declared here
   29 | inline std::string extension(const path& p)
      |                    ^~~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:31,
                 from /home/user/.opt/detectors/manalyze/include/manape/utils.h:35,
                 from /home/user/.opt/detectors/manalyze/include/manape/pe.h:41,
                 from /home/user/.opt/detectors/manalyze/include/import_hash.h:21,
                 from /home/user/.opt/detectors/manalyze/src/import_hash.cpp:1:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/checked.h:235:34: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  235 |     class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66,
                 from /usr/include/c++/13/string:47,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/locale:41,
                 from /usr/include/boost/filesystem/detail/path_traits.hpp:18,
                 from /usr/include/boost/filesystem/path.hpp:21,
                 from /usr/include/boost/filesystem.hpp:16,
                 from /home/user/.opt/detectors/manalyze/include/import_hash.h:18:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /home/user/.opt/detectors/manalyze/include/manacommons/utf8/utf8.h:32:
/home/user/.opt/detectors/manalyze/include/manacommons/utf8/unchecked.h:179:40: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  179 |           class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                        ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
/home/user/.opt/detectors/manalyze/src/import_hash.cpp: In function ‘std::string hash::hash_imports(const mana::PE&)’:
/home/user/.opt/detectors/manalyze/src/import_hash.cpp:13:51: warning: ‘std::string boost::filesystem::basename(const path&)’ is deprecated: Use path::stem() instead [-Wdeprecated-declarations]
   13 |                 std::string dll_name(bfs::basename(*it));
      |                                      ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/boost/filesystem.hpp:21:
/usr/include/boost/filesystem/convenience.hpp:35:20: note: declared here
   35 | inline std::string basename(const path& p)

cybersecurity-dev avatar May 05 '25 14:05 cybersecurity-dev

@cybersecurity-dev It seems that this trace comes from a deprecation and is only a warning. Actually, you should have the manalyze tool built after this execution. You can check this with : manalyze --help

dhondta avatar May 08 '25 22:05 dhondta