Code Monkey home page Code Monkey logo

Comments (8)

ikiril01 avatar ikiril01 commented on August 17, 2024

So I think the biggest issue here is that the name property is duplicative with respect to binary_ref.name . Given that the "name" of a process tends to almost always be the filename of the binary, I would suggest that we deprecate name.

from cti-stix2.

ikiril01 avatar ikiril01 commented on August 17, 2024

As far as command_line, I would suggest updating the description from the existing:

"Specifies the full command line used in executing the process, including the process name (depending on the operating system)."

To the new version:

"Specifies the full command line used in executing the process, including the process name (which may be specified individually via the binary_ref.name property) and any arguments."

from cti-stix2.

ikiril01 avatar ikiril01 commented on August 17, 2024

FYI, this is what Osquery has for these properties:

name | TEXT | The process path or shorthand argv[0]
path | TEXT | Path to executed binary
cmdline | TEXT | Complete argv

from cti-stix2.

johnwunder avatar johnwunder commented on August 17, 2024

I've had this same question, definitely agree with fixing this for 2.1.

from cti-stix2.

treyka avatar treyka commented on August 17, 2024

There are plenty of cases where a process name doesn't align with the binary filepath. For example, in *nix, where you have one binary with a number of different executable symlinks pointing to it and the binary alters its behavior based on how it's called (i.e., argv[0].) Similarly, in Windows™ where you have a callable DLL (with a main() function) with symbolic links as in the previous example.

from cti-stix2.

ikiril01 avatar ikiril01 commented on August 17, 2024

@treyka interesting. I ran an experiment on this on my MacBook, and it least in OS X it looks like the name of the symlink is captured in the command-line (CMD) but not the name of the process.

ikirillov@foo-PC:~$ top
58548  iBooks     
ikirillov@foo-PC:~$ ps -p 58548
  PID TTY           TIME CMD
58548 ttys010    0:01.00 ./iBooks-foo

from cti-stix2.

ikiril01 avatar ikiril01 commented on August 17, 2024

@jordan2175 it looks like we've already made these changes to the Process SCO (name has been deprecated, the description for command_line has been updated, etc.), so there's nothing else that needs to be done here.

from cti-stix2.

jordan2175 avatar jordan2175 commented on August 17, 2024

Looks like this was done some time back. Closing.

from cti-stix2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.