https://github.com/osquery/osquery logo
#linux
Title
# linux
m

MoodyMudit

02/21/2022, 1:03 PM
Hi, I am fetching some data using osquery’s crontab table. There are some ambiguous entries which are getting listed. Can someone please help me understand why this is happening. Here is the data fetched.
Copy code
{  
   command: {}'.format(e))
   path: /etc/cron.d/sched_prov.py
   day_of_month: enforce
   day_of_week: endpoints:
   hour: to
   minute: print('Failed
   month: maintenance
 }
z

zwass

02/21/2022, 5:52 PM
Seems like probably a bug with the
crontab
parsing. Can you paste the corresponding line from the
crontab
file?
s

seph

02/21/2022, 6:50 PM
That kind looks like it tried to parse
/etc/cron.d/sched_prov.py
. Why do you have a python file in your crontab directory?
1
m

MoodyMudit

02/25/2022, 5:47 AM
@seph This is a remote user’s machine and we just noticed this ambiguous data. My hunch was pretty much the same that osquery must have parsed the python file to find some schedule. For now, we are just content with the statement
Copy code
That kind looks like it tried to parse /etc/cron.d/sched_prov.py.
Thanks.
31 Views