45 Commits

Author SHA1 Message Date
huoji
db8082d04a add new API 2025-05-22 17:37:52 +08:00
huoji
fd9cb016e1 fix up 2025-05-22 14:07:27 +08:00
huoji
e160fd0d57 fix up 2025-04-25 16:08:22 +08:00
Huoji's
db31cd90b5 优化rip的速度 2025-04-23 04:47:01 +08:00
Huoji's
785f0da7fe 按照样本优化了一下 2025-04-23 03:48:16 +08:00
Huoji's
8cfd24ab43 修复一个导致崩溃的问题 2025-04-20 23:43:54 +08:00
Huoji's
143a336c8b 修复内存泄漏。并且优化代码格式 2025-04-20 21:00:38 +08:00
huoji
13f5160ddc add grpc 2025-04-01 19:37:55 +08:00
Huoji's
f57ac27aa5 update 2025-03-22 01:59:30 +08:00
Huoji's
2f08a0264a 更新文件路径,优化结构体定义,调整日志级别,增加模块处理函数,修复导入逻辑,提升代码可读性和维护性。 2025-03-22 01:12:47 +08:00
huoji
8e2e0c19ec update 2025-03-20 19:56:39 +08:00
huoji
662e2398eb update 2025-03-20 18:07:52 +08:00
huoji
bcf3cbe7ef 在沙箱中添加了RegisterComApis函数声明,并在InitEnv函数中调用该函数以注册COM相关API。还更新了头文件以包含新函数的声明。 2025-03-20 15:56:05 +08:00
huoji
a96ee2e166 fix up 2025-03-20 14:50:58 +08:00
Huoji's
91dca661ba update & fix logic bug 2025-03-20 04:56:31 +08:00
Huoji's
3a6e331f31 update 2025-03-20 02:18:00 +08:00
huoji
07d66baf36 1 2025-03-19 22:07:57 +08:00
huoji
232a7abcba 初步增加32位支持(没加全) 2025-03-19 20:47:26 +08:00
huoji
9b970ce8a2 修复沙箱功能和API实现
- 在沙箱中添加了对CreateProcessW的支持,整合了CreateProcessA和CreateProcessW的共同逻辑
- 实现了URLDownloadToFileW函数,增加了对可疑URL的检测
- 更新了API钩子以支持新的API功能
- 改进了错误处理和日志记录,确保更好的调试信息输出
- 调整了主函数中的恶意软件扫描和沙箱功能调用顺序,确保恶意软件扫描优先执行
2025-03-19 14:52:19 +08:00
Huoji's
c61773dfd8 update 2025-03-18 22:26:09 +08:00
Huoji's
9a44f20d5c update 2025-03-18 22:04:39 +08:00
huoji
53a4782b7a 修复主函数中的恶意软件扫描和沙箱功能调用顺序
- 将主函数中的沙箱功能调用注释掉,恢复恶意软件扫描功能的调用
- 注释掉了沙箱函数的实现,保持代码整洁
- 确保恶意软件扫描功能在主程序中优先执行
2025-03-18 20:50:45 +08:00
huoji
534b6a84a6 添加沙箱功能和API钩子支持
- 在沙箱中实现了新的功能,包括内存分配和API钩子初始化
- 更新了沙箱类,增加了对WFP引擎的支持
- 添加了多个API的实现,如GetLastError、InitializeCriticalSection等
- 修改了主函数以使用新的沙箱功能,替换了恶意软件扫描功能
- 更新了项目文件以包含新的源文件和API实现
- 改进了错误处理和日志记录功能
2025-03-18 20:49:18 +08:00
Huoji's
4f3f4c7205 Create msbuild.yml 2025-03-15 17:35:07 +08:00
Huoji's
60c4ef5f58 Update project documentation and enhance malware detection engine
- Completely rewrite README.md with comprehensive project overview and technical details
- Add detailed explanation of antivirus engine architecture and detection strategies
- Implement multi-stage malware detection with machine learning, sandbox, and PE structure analysis
- Update project configuration and add new source files for enhanced detection capabilities
- Integrate XGBoost machine learning model with C++ export functionality
- Improve sandbox environment with advanced module and LDR data table handling
- Remove legacy Python prediction and training scripts in favor of C++ implementation
2025-03-09 21:59:22 +08:00
Huoji's
51f929abfa 1 2025-03-09 14:57:42 +08:00
Huoji's
10c56952c6 Refactor import library parsing with SEH-safe function and README update
- Extract SEH-based import library parsing into a separate function for better modularity
- Add new processImportWithSEH and processImportWithSEH_Internal functions to handle import parsing safely
- Update README.md with more detailed project description and initial engine classification
- Improve error handling and exception management during PE import directory traversal
- Standardize library name processing with lowercase transformation
2025-03-09 04:42:28 +08:00
Huoji's
95df007dbf Add README and improve import library parsing with exception handling
- Create initial README.md with project overview and motivation
- Add SEH-based exception handling in ExtractFeatures method for import library parsing
- Prevent potential access violations during PE import directory traversal
- Implement basic error logging for skipped files with access violations
2025-03-09 04:24:46 +08:00
Huoji's
f80ba5d748 Enhance entropy calculation with safety improvements in CalculateEntropy method
- Add size validation to prevent potential DoS attacks
- Implement a maximum file size limit of 2GB
- Add exception handling to prevent access violations
- Improve robustness of byte frequency calculation
- Add basic input validation for data and size parameters
2025-03-09 04:09:24 +08:00
Huoji's
f00b0b2037 Improve Rich Header detection with enhanced safety checks
- Add robust boundary and size validation for Rich header parsing
- Prevent potential buffer overread with controlled search area
- Implement additional checks to handle maliciously crafted PE files
- Limit Rich header search to a maximum reasonable size
- Ensure safe memory access during signature detection
2025-03-09 03:31:11 +08:00
Huoji's
4d1ccb16aa Implement Rich Header parsing for PE file analysis
- Added ParseRichHeader method to extract Rich header information from PE files
- Defined RichEntry and RichHeaderInfo structures to store Rich header details
- Implemented decoding of Rich header entries with checksum XOR technique
- Updated ml.h and ml.cpp to support Rich header parsing
- Improved error handling and logging in ProcessDirectory method
- Translated some log messages to English for consistency
2025-03-09 03:29:14 +08:00
Huoji's
2fed2d5bae Enhance PE file Rich header detection with null and boundary checks
- Added null pointer and boundary checks in ExtractFeatures method
- Prevent potential buffer overread when searching for Rich header signature
- Improve robustness of feature extraction for PE file analysis
2025-03-09 03:25:29 +08:00
Huoji's
defe59ffe8 update 2025-03-09 03:19:40 +08:00
Huoji's
1cea516cf7 Add machine learning feature extraction for PE files
- Implemented MachineLearning class with ExtractFeatures method
- Updated project files to include new machine learning source and header files
- Modified main executable to call feature extraction
- Updated VSCode settings to include additional C++ headers
- Commented out previous file dumping code in main function
2025-03-09 02:05:07 +08:00
Huoji's
d2ed7936df fix up 2025-03-09 00:06:37 +08:00
huoji
f7b0625bff 实现 SetUnhandledExceptionFilter API 模拟 2025-03-07 19:59:00 +08:00
huoji
c5a9c95575 fix up 2025-03-07 19:27:05 +08:00
Huoji's
8504a9c8f9 调不了了 终极大招了 2025-03-07 01:47:01 +08:00
huoji
3f022ddd01 111 2025-03-06 20:33:02 +08:00
huoji
ed5e7ae994 fix up 2025-03-06 20:08:12 +08:00
huoji
9a5ea0f919 1 2025-03-06 19:15:24 +08:00
huoji
2c18f7fd15 update 2025-03-06 18:39:01 +08:00
Huoji's
dbe2e6a92b fix 1 2025-03-06 04:28:34 +08:00
Huoji's
2ca572e225 添加项目文件。 2025-03-06 04:05:03 +08:00
Huoji's
0c7b46b967 添加 .gitignore 和 .gitattributes。 2025-03-06 04:04:58 +08:00