Re: Combine multiple wasm files

2021-09-01 Thread Mehaboob kk
Sorry, I missed this post. Thank you for answering my question. What I am
doing now is to build multiple .a files and combine while linking into one
wasm file.
I tried reverse engineer wasm and .a files back to c file and its still wat
like format not getting back to the original c/c++ code which I started
with. However, someone who is intimately familiar with wasm may be able to
figure out the source, just like a assembly language expert can understand
the logic. Now I am trying to apply some source obfuscation as binary
obfuscation tools not available for wasm.
Do you think my understanding is correct? Are there any tools out there to
reproduce the exact c code from wasm binary?




On Sat, Jun 19, 2021 at 8:23 PM 'Sam Clegg' via emscripten-discuss <
emscripten-discuss@googlegroups.com> wrote:

> What is the current mechanism for loading the wasm file you are
> supplying?  Are you using emscripten's dynamic linking capability (i.e.
> MAIN_MODULE + SIDE_MODULE?).
>
> If that answer is yes, and you are asking about linking a SIDE_MODULE into
> the MAIN_MODULE ahead of time, its not something that is supported no.
> Also, shared libraries (side moudles) are are only slightly more obfuscated
> than object files and `.a` archives.  They are all in the wasm format which
> is fairly easy to disassembly.  If you want to try to prevent decompilation
> or disassembly you would need to do more than just ship as a shared library
> (side module) you would also need to perform some kind of obfuscation,
> which by its nature (and the nature of WebAssemlby in particular) is always
> going to have limits.
>
> On Sat, Jun 19, 2021 at 3:45 PM Mehaboob kk  wrote:
>
>> Hello,
>>
>> Is it possible to combine multiple .wasm files to one single .wasm file?
>>
>> Scenario:
>> I want to share a library(SDK) to an end customer who is building the
>> .wasm/JS application. Customer concerned that loading multiple wasm files
>> is not efficient. So we wanted to combine two wasm files. Although I can
>> share static lib generated using Emscripten, its not preferred because .a
>> file is easy to reverse compared to wasm right?
>>
>> Any inputs on this please?
>>
>> Thank you
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to emscripten-discuss+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/emscripten-discuss/CAO5iXcCQC45LU%3DNMFev5PYjn%2BmzOOgDfhXx0ahDXq8GqKRVjJQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/emscripten-discuss/CAO5iXcCQC45LU%3DNMFev5PYjn%2BmzOOgDfhXx0ahDXq8GqKRVjJQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to emscripten-discuss+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/CAL_va29zxMEFFi8gHEP5C0pBJ0idQh8qeqT%2B1S5v%3D9XO5BMKNA%40mail.gmail.com
> <https://groups.google.com/d/msgid/emscripten-discuss/CAL_va29zxMEFFi8gHEP5C0pBJ0idQh8qeqT%2B1S5v%3D9XO5BMKNA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAO5iXcA7%3DS0SD%2Bas_BZGvwKD95DT-%2B32%2Bk3zn_bDfNL77LhnOg%40mail.gmail.com.


Combine multiple wasm files

2021-06-19 Thread Mehaboob kk
Hello,

Is it possible to combine multiple .wasm files to one single .wasm file?

Scenario:
I want to share a library(SDK) to an end customer who is building the
.wasm/JS application. Customer concerned that loading multiple wasm files
is not efficient. So we wanted to combine two wasm files. Although I can
share static lib generated using Emscripten, its not preferred because .a
file is easy to reverse compared to wasm right?

Any inputs on this please?

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAO5iXcCQC45LU%3DNMFev5PYjn%2BmzOOgDfhXx0ahDXq8GqKRVjJQ%40mail.gmail.com.


Re: Using custom libs .a files

2021-04-28 Thread Mehaboob kk
Hi Thomas,

Thanks for your input, I was referring to the Using Libraries section here
https://emscripten.org/docs/compiling/Building-Projects.html#using-libraries


Thanks,
Mehaboob



On Wed, Apr 14, 2021 at 4:14 PM 'Thomas Lively' via emscripten-discuss <
emscripten-discuss@googlegroups.com> wrote:

> Hi Mehaboob,
>
> No, Emscripten cannot compile native objects or archive files to
> WebAssembly. Perhaps what you saw was a reference to archive files
> containing WebAssembly objects produced by Emscripten?
>
> Thomas
>
> On Wed, Apr 14, 2021 at 12:45 Mehaboob kk  wrote:
>
>> Hello All,
>>
>> I see that Emscripton allows to compile .a files to wasm. In order for
>> this to work the .a file need to be originally compiled using gcc? if yes,
>> any specific version to be compatible?
>>
>> Thanks,
>> Mehaboob
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to emscripten-discuss+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/emscripten-discuss/ee46348f-db22-406d-b85d-7dae3aa57e8an%40googlegroups.com
>> <https://groups.google.com/d/msgid/emscripten-discuss/ee46348f-db22-406d-b85d-7dae3aa57e8an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "emscripten-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/emscripten-discuss/5-IfzGR_ioQ/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> emscripten-discuss+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EUz2Mkh3S1%2Bh7iGox2Pk3KZWOvMKOrr8a7sNSoZyG7rnw%40mail.gmail.com
> <https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EUz2Mkh3S1%2Bh7iGox2Pk3KZWOvMKOrr8a7sNSoZyG7rnw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAO5iXcAPy%2BRLggy1p4mk7RRBQLh8WjZcUQ927D3XtFwk_JCuVw%40mail.gmail.com.


Re: WASM reverse engineering protection

2021-04-28 Thread Mehaboob kk
Hello,
Appreciate your help. Thanks for your response.

-Mehaboob

On Wed, Apr 14, 2021 at 8:22 PM J Decker  wrote:

> If code can be run, it can be reverse engineered; just a matter of how
> much work one wants to put into it.
> If the code was compressed, and encrypted, then there'd still be a small
> bit code that has the decrypt, which can be extracted to get the rest, etc.
> Remote checking is a better option; requiring a bit of external code that
> encodes the license in a varying way, for submission to the server, which
> might reply with some small code which enables it to actually function.
> Of course - the really diligent would still just capture the reply and
> bundle it all up statically.
>
> It's just a matter of how much time you want to make them spend... but
> much like a lock that can be opened can be picked, code that runs can be
> 'run' virtually, using just pen and paper.
>
> On Wed, Apr 14, 2021 at 12:43 PM Mehaboob kk  wrote:
>
>> Hello All,
>>
>> Is there any technique to protect the WASM code from reverse engineering?
>> I have a licensed software which need to be protected. I am worried that
>> the reverse engineered code can be modified to bypass the license and
>> compile it back again
>>
>> Any inputs please
>>
>> Thanks,
>> Mehaboob
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to emscripten-discuss+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/emscripten-discuss/d9c09212-cad8-40e1-ba4c-88979f8437a2n%40googlegroups.com
>> <https://groups.google.com/d/msgid/emscripten-discuss/d9c09212-cad8-40e1-ba4c-88979f8437a2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to emscripten-discuss+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/CAA2GJqWtWBgix7K3VYT7NiUmRW4R%3DMHKsy570GiX_K7uhCbovA%40mail.gmail.com
> <https://groups.google.com/d/msgid/emscripten-discuss/CAA2GJqWtWBgix7K3VYT7NiUmRW4R%3DMHKsy570GiX_K7uhCbovA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAO5iXcB_S6GvA2H-4DLE%3DbWnvJ4PcLXWbD6ArEV-BxS4-zZ2NQ%40mail.gmail.com.


Using custom libs .a files

2021-04-14 Thread Mehaboob kk
Hello All,

I see that Emscripton allows to compile .a files to wasm. In order for this 
to work the .a file need to be originally compiled using gcc? if yes, any 
specific version to be compatible? 

Thanks,
Mehaboob

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/ee46348f-db22-406d-b85d-7dae3aa57e8an%40googlegroups.com.


WASM reverse engineering protection

2021-04-14 Thread Mehaboob kk
Hello All,

Is there any technique to protect the WASM code from reverse engineering? I 
have a licensed software which need to be protected. I am worried that the 
reverse engineered code can be modified to bypass the license and compile 
it back again

Any inputs please

Thanks,
Mehaboob

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/d9c09212-cad8-40e1-ba4c-88979f8437a2n%40googlegroups.com.