Hi @HKPR ,
Thanks for reaching out to Q&A.
The files present in the Temp directory are temporary files, they are deleted automatically once in 12 hours (not after each run) or if the app is restarted. Unlike Persisted files, these files are not shared among site instances. Also, you cannot rely on them staying there. So there are no security issues concerned here.
Please look into this article for more details: https://github.com/projectkudu/kudu/wiki/Understanding-the-Azure-App-Service-file-system#temporary-files
Hope this helps! Feel free to reach out to me if you have any queries or concerns.