Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refuse to map procfs files on Linux (VirusTotal#1848) #4

Merged
merged 38 commits into from
Jan 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
750c419
Make next_func_idx an unsigned integer.
plusvic Sep 6, 2022
a624eb4
Update README.md (#1788)
kaganisildak Sep 12, 2022
e112951
Merge remote-tracking branch 'origin/master'
plusvic Sep 20, 2022
ba78a72
Don't recurse infinitely. (#1794)
wxsBSD Sep 21, 2022
d6fc080
Implement text string sets. (#1787)
wxsBSD Sep 23, 2022
c0a2b5a
Add OP_OF_FOUND_AT. (#1790)
wxsBSD Sep 26, 2022
06bbcef
update for new mandiant url (#1786)
crowface28 Oct 3, 2022
b4f33e2
Print module names. (#1801)
wxsBSD Oct 14, 2022
e3fa8fc
Update README.md (#1804)
AhmetPayaslioglu Oct 17, 2022
9bbae59
Add missing options to manual page. (#1807)
wxsBSD Oct 20, 2022
c67837f
Add warnings for edge cases. (#1806)
wxsBSD Oct 20, 2022
4b37e42
Fix link in capi docs. (#1812)
wxsBSD Oct 24, 2022
a3aa05b
Update README.md (#1809)
0x100001 Oct 24, 2022
02ce7c0
document MAGIC alternative mgc env variable (#1813)
mikewiacek Oct 26, 2022
ea76421
Try to fix build on WIN32 when using --with-debug-verbose. (#1821)
wxsBSD Nov 12, 2022
5063526
Add note that this feature is only in 4.3.0. (#1823)
wxsBSD Nov 15, 2022
c2557fc
Fix SIGFPE when dividing INT64_MIN by -1.
plusvic Dec 5, 2022
da18b62
Merge remote-tracking branch 'origin/master'
plusvic Dec 5, 2022
65feab4
Fix issue #1819
plusvic Dec 5, 2022
466a522
fix: Allow other users to delete/rename the file we are currently che…
poliorcetics Dec 14, 2022
bb5bdae
Update python docs with StringMatch and StringMatchInstance objects. …
wxsBSD Dec 14, 2022
0a2d31f
Collect some open PRs for inclusion for 4.3.0 (#1835)
wxsBSD Dec 15, 2022
1df1938
Add tests/test-string.c and update .gitignore (#1836)
wxsBSD Dec 15, 2022
4577e9d
Add `modules/string/string.c` to Visual Studio projects.
plusvic Dec 15, 2022
a4f48a0
Add MacOSX CI build (#1840)
hillu Dec 19, 2022
55581a8
Revert "fix: reject non ascii bytes in regex (#1770)"
vthib Aug 22, 2022
2dd6526
Merge remote-tracking branch 'origin/master'
plusvic Dec 19, 2022
1b2989e
Merge Makefile.am into a single file (#1811)
hillu Dec 19, 2022
0300742
test-magic: Update expected strings (#1845)
hillu Dec 29, 2022
7ecc252
hash: Use OpenSSL's evp(7) series of functions (#1846)
hillu Dec 29, 2022
97cab27
Ban floating point values in for expressions. (#1844)
wxsBSD Dec 29, 2022
f9d87c6
fix error handling in string.to_int() (#1842)
vthib Dec 30, 2022
abb2abf
Update ABI version.
plusvic Dec 30, 2022
943455a
Bump version to 4.3.0.
plusvic Dec 30, 2022
8b8384d
Bump version number in documentation.
plusvic Dec 30, 2022
4fe9793
Avoid fallthrough in switch statement.
plusvic Dec 30, 2022
68d9b65
Display plaintext when using the -X argument. (#1849)
wxsBSD Jan 2, 2023
b5a0cfd
Refuse to map procfs files on Linux (#1848)
hillu Jan 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,40 @@ jobs:
- name: Build
run: make clean && make

macosx-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew install \
autoconf \
automake \
bison \
flex \
libtool \
pkg-config \
jansson \
libmagic \
openssl@3 \
protobuf \
protobuf-c
- name: Print versions
run: |
bison --version
gcc --version
- name: Prepare for building
run: |
./bootstrap.sh
./configure --enable-debug --enable-cuckoo --enable-magic --enable-pb-tests
- name: Build
run: make clean && make
- name: Run tests
run: make check
- name: Print tests errors
if: ${{ failure() }}
run: cat test-suite.log

bazel-build:
# The ubuntu-20.04 virtual environment has Bazel installed, see:
# https://github.com/actions/virtual-environments
Expand All @@ -89,4 +123,4 @@ jobs:
- name: Build
run: bazel build @jansson//... //tests/...
- name: Run tests
run: bazel test --test_output=errors //tests/...
run: bazel test --test_output=errors //tests/...
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ stamp-h1
/yarac
/libyara/modules/.dirstamp
libyara/proc/.dirstamp
libyara/yara.pc
/yara.pc
/tests/.dirstamp

# Linux and Mac files
*.swp
.DS_Store

# Files generated by tests
test-*
test-*[^.c]
test-async
test-rules.yarc

# Bazel
bazel-*
Expand Down
4 changes: 4 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ yara_library(
"pe",
"tests",
"time",
"console",
"string",
],
modules_srcs = [
"libyara/modules/cuckoo/cuckoo.c",
Expand All @@ -92,6 +94,8 @@ yara_library(
"libyara/modules/pe/pe_utils.c",
"libyara/modules/tests/tests.c",
"libyara/modules/time/time.c",
"libyara/modules/console/console.c",
"libyara/modules/string/string.c",
],
deps = [
"@jansson",
Expand Down
Loading