Secure workspace parser implementation

Please pull my changes into your branch, Danil. Thank you.