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

-a parameter doesnt accept the full path of the artifac file. #154

Open
fafiorim opened this issue May 26, 2023 · 3 comments
Open

-a parameter doesnt accept the full path of the artifac file. #154

fafiorim opened this issue May 26, 2023 · 3 comments
Assignees
Labels

Comments

@fafiorim
Copy link

the artifact parameter doesn't accept the entire file path of the file. For manual execution works file, but when automating it could became a challenge, since is better to avoid the using of the cd command.

Error e.g.:

/tmp/uac/uac-main/uac -a /tmp/uac/uac-main/artifacts/memory_dump/avml.yaml /tmp

uac: artifact file not found '/tmp/uac/uac-main/artifacts//tmp/uac/uac-main/memory_dump/avml.yaml'

Works with when in the same directory:
e.g.:

pwd

/tmp/uac/uac-main

/tmp/uac/uac-main/uac -a artifacts/memory_dump/avml.yaml /tmp

@tclahr tclahr self-assigned this May 30, 2023
@tclahr
Copy link
Owner

tclahr commented May 30, 2023

By default, UAC will search for artifacts within "artifacts" directory only. I have added this enhancement to the development road map. Thank you!

@tclahr tclahr added the status: confirmed Confirmed label May 30, 2023
@tclahr
Copy link
Owner

tclahr commented Sep 19, 2023

This feature requires changes on how UAC store collected data. Today, UAC stores live data into a directory structure following the same structure in the artifacts directory. If an artifact file is located outside UAC directory, UAC would never know where to store the collected data.

I.e.: artifact files located in 'artifacts/live_response/hardware' will always store data into 'live_response/hardware' directory, and so on. If an artifact file is located in /tmp/my_custom_artifact_files/custom.yaml, UAC will never know where to store that data in the output file.

In UAC v3, setting the 'output_directory' property will be required in YAML files, so no matter where the YAML file is, UAC will always know where to store the data properly. This also brings more flexibility for collecting and storing artifacts.

@tclahr tclahr added the status: development In development phase label Dec 6, 2023
@tclahr
Copy link
Owner

tclahr commented Jul 4, 2024

I have pushed a new code to develop that makes this possible.

  • Now you have the option to supply a file path to a custom profile located outside the profiles directory.
  • Now you have the option to supply a file path to a custom artifact located outside the artifacts directory.

To make this possible output_directory property must be set.

Can you download the develop branch and test it, please?

@tclahr tclahr added status: testing Testing phase and removed status: development In development phase labels Jul 4, 2024
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