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

Missing expected event: security_socket_connect #3301

Open
OriGlassman opened this issue Jul 6, 2023 · 1 comment
Open

Missing expected event: security_socket_connect #3301

OriGlassman opened this issue Jul 6, 2023 · 1 comment
Labels

Comments

@OriGlassman
Copy link
Collaborator

Description

I ran some binary and expected to see a security_socket_connect. I did see a socketcall syscall with 'call' argument being 3 which leads to __sys_connect, and eventually to security_socket_connect - but I don't get any security_socket_connect in tracee.
The return value of socketcall syscall is 0, so the call indeed succeeds (and I have an established connection).

./tracee -f e=security_socket*,socket*,security_socket_connect

Output of tracee version:

Tracee version: "v0.16.0"

Output of uname -a:

Linux kali 6.1.0-kali5-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.12-1kali2 (2023-02-23) x86_64 GNU/Linux

Additional details

08:41:19:699082 1000 payload 1922 1922 0 security_socket_create family: AF_INET, type: SOCK_STREAM, protocol: 0, kern: 0
08:41:19:699078 1000 payload 1922 1922 3 socketcall call: 1, args: 0xffb7fd24
08:41:19:699118 1000 payload 1922 1922 0 socketcall call: 3, args: 0xffb7fd14
08:41:19:699699 1000 payload 1922 1922 106 read fd: 3, buf: 0xffb7fd18, count: 106
08:41:19:732676 1000 payload 1922 1922 1017704 socketcall call: 10, args: 0xffb7fd08
08:41:19:738542 1000 payload 1922 1922 0 security_file_open pathname: /proc/stat, flags: O_RDONLY|O_LARGEFILE, dev: 20, inode: 4026532118, ctime: 1688623941048000000, syscall_pathname: /proc/stat

@geyslan
Copy link
Member

geyslan commented Nov 14, 2024

@OriGlassman is this still reproducible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants