Replies: 1 comment
-
We've been using Dict types so far as input and output types for some of the Eldritch functions. We've discussed making the C2 type aware in order to enable more rich front end views for features like: file browsing, process lists, and port scanning. In order to do this the agent would also need to be type aware. The current thought to implement this is:
This feature would enable rich front end features, and enable caldera style "facts". Adding strict typing to the C2 and agent would be nice however at this point it would add lots of complexity. Adding types to eldritch may still be a good first step as we add more functions we may be able to optimize some tomes eg. Instead of kill a pid calling the kill function on a process object. |
Beta Was this translation helpful? Give feedback.
-
While working on implementing Dict as an input type to the template function @Cictrone recommended using custom types.
If that something we want to pursue stralark rust provides a compromise between Dict and creating a custom type called records.
https://github.com/facebookexperimental/starlark-rust/blob/main/docs/types.md#record-types
https://github.com/facebookexperimental/starlark-rust/blob/449879f2dce69538152b43925c1c6d8a76bfcc3d/starlark/src/values/types/record.rs
Between
Dict
, customRecord
s, and Custom data types how should we manage complex input / output in Eldritch.Beta Was this translation helpful? Give feedback.
All reactions