Refactor curl procedures
Initial security advisories integration #2