Re: intercepting file i/o of another process

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The IO is not totally arbitrary. The spawned process will create a
new file, write its results to the file serially, and close the file.
If I had access to the file handle, it would seem this could be done
using a pipe. Unfortunately I don't have a clue how to go about
getting that file handle.

Lee

On Nov 30, 2:55 pm, "m" <m...@xxx> wrote:
Then you have no hope of success (in a reasonable period of time of course)

Think about what you are trying to do: intercept arbitrary IO on one or more
handles from a 3rd party binary and encrypt the data.  Ignoring the problem
of capturing the IO, how will you deal with encryption when processing
arbitrary IOPs on an incomplete file?

I wish you all success, but I highly recommend that you change your approach
to this problem.

"navels" <nav...@xxxxxxxxx> wrote in message

news:5b016269-268a-4bb0-b27b-4925b3db21fb@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I appreciate the suggestions, but neither of these are options.

On Nov 28, 9:04 am, "m" <m...@xxx> wrote:

then look at methods to secure the transmission -> VPN of some kind

alternatly, have the application save the file locally, and then you can
encrypt it before coppying over the network.

"navels" <nav...@xxxxxxxxx> wrote in message

news:430d0e39-680b-4b50-b618-70f789443d47@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Mostly the transmission.

On Nov 26, 5:38 pm, "m" <m...@xxx> wrote:

Are you concered about encrypting the file itself or just its
transmittion
over the insecure network?

"navels" <nav...@xxxxxxxxx> wrote in message

news:b08e5476-2031-4828-8ba7-46f94a0f7be1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I am using CreateProcess to spawn a computational task. The task
takes some command line parameters and writes its results to a file..

Now I have a requirement to encrypt the output file. While it is
being written over a public network. And I do not have source code
for the task application.

So . . . is there any way I can intercept the file handle the child
process creates for the output file? Then the parent app can read get
the output, encrypt it, and write it out. If the child was writing to
stdout, of course this would be much easier. But it is not.

This may be tantamount to sandboxing, but I would prefer a light-
weight solution I can program myself (C++ or C#). Any ideas?

Thanks,
Lee

.



Relevant Pages

  • Re: intercepting file i/o of another process
    ... encrypt it before coppying over the network. ... Mostly the transmission. ... process creates for the output file? ...
    (microsoft.public.win32.programmer.networks)
  • Re: intercepting file i/o of another process
    ... handles from a 3rd party binary and encrypt the data. ... I wish you all success, but I highly recommend that you change your approach ... encrypt it before coppying over the network. ... process creates for the output file? ...
    (microsoft.public.win32.programmer.networks)
  • Re: C# Exceptions
    ... I would suggest to encrypt the data sent through the network ... signature is valid then the app can decrypt the response and process it. ... AVAILABLE ON THE NETWORK. ...
    (Pen-Test)
  • Re: intercepting file i/o of another process
    ... encrypt it before coppying over the network. ... process creates for the output file? ...
    (microsoft.public.win32.programmer.networks)
  • Re: Tunnelling oneself?
    ... you can tunnel from you to you. ... That won't include everything, since you still need to talk to the wireless network, but it will encrypt everything important. ... That will result in you encrypting everything important while over an untrusted network, but not encrypt everything when you're on the trusted network. ...
    (Security-Basics)